Problem with a the sound not playing in time

MammothMammoth Member Posts: 640
edited November -1 in Working with GS (Mac)
Hi there,

I have just completed a metronome/game and it works perfectly fine except for this one problem. Here is my math for the beat machine. The beat number is the notes per beat and the beat modifier tells us whether we are playing 8th notes or 16th notes.

60\(beat number * beat modifier)

Anyway the problem is that the beats come out irregularly. Meaning that the interval between clicks is irregular when its supposed to be regular.

Im thinking this is a memory issue. Did I do something wrong?

Comments

  • old_kipperold_kipper Member Posts: 1,420
    If you have written that as you actually have it in GS then "\" should I think be "/".

    I have built a sequencer in gs with a adjustment for where in a bar a sample is dropped in. I did it by having the smallest division of time as the sync clock (based on a every whatever seconds fire the sync attribute) and then used counters of the attribute being fired to lock things in to quarter, half, beats and every other or bar. It works pretty well.

    Hope that helps

    kipper
  • MammothMammoth Member Posts: 640
    Wait what you are saying is that you made the time built on an internal clock. How did you do that? :)
  • MammothMammoth Member Posts: 640
    Another thing that's odd is when Im debugging it with GS viewer there is no lag but when I just play it on my ipad there is lag. ???
  • old_kipperold_kipper Member Posts: 1,420
    ok... use a timer in an actor set to the smallest division for time you what to count, and if you want the bpm be variable you will have to be able to feed the variation in the 'every timer'. Then use the timer to 'fire' a boolean true, and a rule that returns it to false after something shorter than your next 'fire'.

    The boolean is now your sync clock.

    Put the actor timer rule in a rule to start it up and stop it.

    Then in your sample actors have rules that count the sync clock and fire as desired.

    p.s. my problem was greed. I had about 120 actors with samples and while it works on the mac it falls over on the ipad at about 60, with 8 in sync as any one time
Sign In or Register to comment.