|
Post by rosy on Mar 13, 2021 13:06:08 GMT -6
I'm playing a MIDI file. How can I check if the music is playing?
|
|
|
Post by n00b on Mar 13, 2021 14:30:56 GMT -6
I will look at the MusicPosition function.
And after looking over the manual, I now realize I never added a function to check if music is playing. I will add it to the next release.
Thanks for reporting this.
|
|
|
Post by rosy on Mar 15, 2021 10:11:43 GMT -6
One of my tracks seems to be looping incorrectly. Some sounds from the previous run are retained when played back.
Was MIDI playback under Linux tested?
|
|
|
Post by johnno56 on Mar 15, 2021 13:13:12 GMT -6
Rosy, Just tested a midi file on my Linux machine and it played just fine. Forgot to set the volume down to something that both my headphones and ears could cope with... but it played just fine. J xmax = 640 ymax = 480 title$ = "Music"
WindowOpen(1,title$,windowpos_centered,windowpos_centered,xmax,ymax,0) CanvasOpen(1,xmax,ymax,0,0,xmax,ymax,0)
loadMusic("bookends.mid")
playMusic(1)
waitkey bookends.mid (2.93 KB)
|
|
|
Post by n00b on Mar 16, 2021 12:16:07 GMT -6
Thanks for looking into this Johnno
|
|
|
Post by rosy on Sept 30, 2021 14:16:21 GMT -6
Do music scrolling functions work? how ?
|
|
|
Post by johnno56 on Sept 30, 2021 14:33:37 GMT -6
Scrolling? Not sure what you mean by scrolling. Are you referring to the music's position or the panning of the music? Warning. I have only used the basic audio commands. Position, panning etc., I know very little about... By the way, did you eventually get your midi file to play properly?
|
|
|
Post by rosy on Sept 30, 2021 14:50:58 GMT -6
Are there any music panning functions I lost MIDI in Linux.
|
|
|
Post by johnno56 on Oct 1, 2021 4:34:40 GMT -6
There most certainly is... Mind you, I have no idea as to how to use that feature, as I have never had the reason to do so. rcbasic.online/doc/rcbasic_manual.htmlUnder "Functions By Category" Then select "Sounds and Music" Then select "Set Channel Panning" -------------------------------------------------------------- SetChannelPanning( channel, left_value, right_value ) Set Panning effect for channel. left_value and right_value must be a value between 0 and 255. Returns 0 on error. NOTE: Setting both left and right to 255 will cancel the pan effect Example: If SetChannelPanning(1, 255, 127) = 0 Then Print "Effect did not register" End If
|
|