Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to make a _SNDNEW song this way?
#2
I think you just inspired an idea to make _SNDNEW feed to an array handle. I mean essentially we have this with fonts, the ability to load several font libraries and keep them in memory; so this may be possible.

As a side note, did you ever consider cutting down some code by changing your style in SELECT CASE as in...

Code: (Select All)

        Select Case Mid$(Music$, cur, 2)

            Case Is = "a0": note = 27.50: cur = cur + 2: GoSub LoadNote

            Case Is = "A0": note = 29.14: cur = cur + 2: GoSub LoadNote

            Case Is = "b0": note = 30.87: cur = cur + 2: GoSub LoadNote

            Case Is = "c1": note = 32.70: cur = cur + 2: GoSub LoadNote

            Case Is = "C1": note = 34.65: cur = cur + 2: GoSub LoadNote

        End Select

to...

Code: (Select All)
act = 1 ' <------------------ 
        Select Case Mid$(Music$, cur, 2)

            Case Is = "a0": note = 27.50

            Case Is = "A0": note = 29.14

            Case Is = "b0": note = 30.87

            Case Is = "c1": note = 32.70

            Case Is = "C1": note = 34.65
           
            Case Else: act = 0 ' <------------------

        End Select
If act Then cur = cur + 2: GoSub LoadNote: act = 0 ' <------------------

Hopefully that other 'Sam' will stop by with a definitive answer to your sound query.

Pete
Fake News + Phony Politicians = Real Problems

Reply


Messages In This Thread
RE: Is it possible to make a _SNDNEW song this way? - by Pete - 09-07-2024, 12:30 AM



Users browsing this thread: 5 Guest(s)