Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TankDrum - Virtual tankdrum instrument to play record songs
#11
(06-01-2023, 12:48 PM)grymmjack Wrote: Is MIDI device input a possibility for future of QB64?

I know in QBJS we can do it through WebMIDI

Csound could handle MIDI input through PortMIDI. It seems to be the only good way for a programming system for hobbyists.

https://github.com/PortMidi/PortMidi

https://csound.com/docs/manual/MidiTop.html

(06-01-2023, 01:47 PM)grymmjack Wrote: One thing I wanted to say about the drum machine.. It seems like there is a limiter or compressor or some kind of dynamics DSP going on because when I stack multiple steps across with the full "hot" step, not the dark red, it somehow compensates to not clip.

This is part of the code for _SNDOPENRAW.

https://qb64phoenix.com/qb64wiki/index.php/SNDOPENRAW
Reply
#12
Hey, thanks @grymmjack! It was fun making this, but it is funner (if that’s a word) to see people actually using it.  I made a updated version of this a few months ago, didn’t post it.  I’ll dig it up and post it.  If you want to add anything to it please do.  

Nice to see another musician hanging out here!

- Dav

Find my programs here in Dav's QB64 Corner
Reply
#13
(06-03-2023, 07:23 PM)Dav Wrote: Hey, thanks @grymmjack! It was fun making this, but it is funner (if that’s a word) to see people actually using it.  I made a updated version of this a few months ago, didn’t post it.  I’ll dig it up and post it.  If you want to add anything to it please do.  

Nice to see another musician hanging out here!

- Dav

Awesome. I'd love to try new version.

I was having a blast with this. It's so pretty. I didn't know what a tank drum was before you shared this.
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply
#14
This is AWESOME Dav! I've wanted a real one of these for years, and now I have one just like it! I just recorded my first little song too. 

When I first started it though I had an error with the icon file, not finding it. It was in the correct folder but for some reason $EXEICON:'TankDrum\img\tankdrum.ico doesn't see it. It's been years since I programmed so maybe I'm forgetting something in the settings? I went around that line and the _ICON line to make it work. I did change the line to try different wordings of the folder, but I would think that would work? Is it because I have all my QB64 programs in one giant folder? The other files work well though. 

Anyways, thanks for making this!
Reply
#15
Very cool, Dav. Excellent sound and reverb. I had to comment out the .ico loading on line 44 for it to run...
Reply
#16
For some reason QB64 gets stupid finding those icon files, sometimes a "./" at start of path helps ie you have to tell it to look in the current folder for the file.
b = b + ...
Reply
#17
It's not QB64.

Unlike Windows, *nix systems do not start searching from the program directory by default.

On Linux, if the path "TankDrum\img\tankdrum.ico" is within the current directory then you need to tell that to the OS: "./TankDrum\img\tankdrum.ico".

If you want full cross-system portability you can do that in Windows as well.  There's no harm in it.
Reply
#18
I don't know about *nix systems nor much about Linux. I use Windows and just about everyone's Icon file gets an error when compiling whereas image and sound files are easily found.
b = b + ...
Reply
#19
Hey thanks @NakedApe  (thanks @SierraKen too, I forgot to respond to your post).  Hmm, looks like I forgot to post the new version here with fixes and some extra things.  I'll try to dig that up - since I switched to Linux my older projects are on a backup disk somewhere now...

- Dav

Find my programs here in Dav's QB64 Corner
Reply
#20
Hi Dav, I just grooved out using this app and your Drum Machine you made many years ago. I recorded myself playing the mouse on the Tank Drum and at the same time I had the Drum Machine playing one of my simple beats. I used the free recording app called Audacity to record with. It's a 2 minute song called, "Be Happy.mp3". Check it out. Smile

Thanks very much for making these 2 apps!


Attached Files
.mp3   Be Happy - by Ken.mp3 (Size: 2.27 MB / Downloads: 13)
Reply




Users browsing this thread: 1 Guest(s)