Sounds cool -- storing absolute offsets of the MIDI events from some arbitrary start time would work better to implement seeking. Deltas can then be reconstructed from [current_event_time - previous_event_time]. You can iterate through the events once at the very beginning to convert deltas to absolute times.
Spencer On Tue, Apr 25, 2023 at 1:43 PM d <dch...@yurfish.com> wrote: > Hi > > I'm revisiting my chuck sequencer > after trying java for a bit. > > I can play a file, now. > > But I want to seek to a particular > measure, start and stop at random times, > break out of a loop over some bars, > and other kinds of conducting. > > SO Ive loaded the tracks in an array > but the times are converted to deltas > Making seeking difficult. > > I think I need to implement a midi clock > and somehow "send" the time to the > track sporks or something. > > Perhaps there is something in the > upcomping realease that will help? > > I do my arranging in lilypond and > long term id like to explore > "players" that modify the events > slightly, adding velocity,swing, > vibrato, etc and be able to > conduct that in real time. > Perhaps even from cues in the score. > > any suggestions welcome > thanks, > d > _______________________________________________ > chuck-users mailing list > chuck-users@lists.cs.princeton.edu > https://lists.cs.princeton.edu/mailman/listinfo/chuck-users > >
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users