First off, my introduction. I will post it here, so that you know where I am coming from. Hopefully this is the last time I will have to tell this sorry story and I can finally get on with my life.
[Introduction]
About twenty years ago I graduated high school and went off to college. The college that offered me the most money was small, and only offered Associates level degrees. Being from a small town (2000k then, ~700 in the last census) I didn't know much about the world. Ideas like "you only need one Associates degree," So I stayed at the college until I had two Associates degrees. Then I transferred to an actual university in another town. The advisor they assigned me actually fell out of his chair when he saw my transcript. I had 128 credit hours of Associates-level classes. I attended that university for a year. I got burnt out. It happens to the best of us at some point. But, just to be clear, I do not consider myself the best of any collective 'us'. Most of the time, I consider myself closer to the other end of the spectrum. I went through several stages of Darkness, ending up angry and terrified of people. This lasted for about 15 years. I lost most of my skills. (If you don't use them, you lose them.) I sat in front of the television, consuming mindless Entertainment. About 2013, I discovered YouTube. Then, I finally started meditating and asking a higher power if there was a way out. That was about three years ago. I am now attempting to reclaim my life. I sing in the church choir, I set up tables and chairs for their weekly community dinner. I'm around people. I can't talk to all of them yet, but I made it this far. Today, I'm actually going to seek gainful employment. I haven't worked since I burnt out. I am learning to program again. From the beginning. I bought Stroustrup's PPP book, and am working through it. I'm only on Chapter 2 at the time of this writing, but I'm not giving up this time. There's too much at stake.
[/Introduction]
And now on to my actual problem. I think this is probably due to my lack of CLI experience. My arguments are probably in the wrong order.
1 2 3 4 5
|
michael@caitlyn sing $ g++ -Wall -D__LINUX_ALSA__ -o midiout midiout.cpp -lasound -lpthread
/tmp/ccCbm3tY.o: In function `main':
midiout.cpp:(.text+0x49): undefined reference to `RtMidiOut::RtMidiOut(RtMidi::Api, std::string const&)'
collect2: error: ld returned 1 exit status
|
I create a Notes.txt file for each project I plan to work on (some day). This particular project's Notes file says:
1 2 3 4 5 6 7 8
|
michael@caitlyn sing $ cat Notes.txt
Program should provide solfedge (Do-Re-Mi) on a scale starting at a particular
note. It should then select one note on that scale. This note will be
skipped. On each run through the scale, the skip note will be skipped.
Ex: Do-Re-Me-Fa-So-La-Ti-Do
The skip note is Ti, so it would be:
Do-Re-Me-Fa-So-L
|
Do----La-So-Fa-Me-Re-Do.
The scale should run forward and backward.
The note should be outputted through the MIDI interface.
michael@caitlyn sing $ |
I have not altered midiout.cpp. I copied it from
https://www.music.mcgill.ca/~gary/rtmidi/index.html#download. I built it in /home/michael with ./configure --prefix=/opt (I've been told on numerous occasions that non-Slackware code belongs in /opt). Then I logged into root and ran make install. Please help me figure this out, and thank you in advance for any help you offer. Thank you also for your patience with me, and all my rambling.