dathinaios / CuePlayer

A tool for composing and performing real-time and mixed electronic works using SuperCollider.
28 stars 5 forks source link

Provide mechanism to start a TimeLine from a specific time offset #13

Closed dathinaios closed 3 years ago

dathinaios commented 4 years ago

... I'm ending up in a situation now where I have 30 minute long timelines with no way of going to specific points in time. I was wondering if it would be possible to implement this behaviour through setting the clock, something in line with

~cuelist.clock.beats = 290;

to be able to go directly to time 290, but this doesn't work, unfortunately. The use case is to be able to start the show from a specific point in time and let it run in real time after that.

Originally posted by @kflak in https://github.com/dathinaios/CuePlayer/issues/11#issuecomment-670054806

kflak commented 4 years ago

Yes!!!

dathinaios commented 4 years ago

@kflak I finally had a go at this! Would you mind testing it and give some feedback?

In theory all you need to do is add an offset argument in the timeline options. For example:

(
c = TempoClock(5);
t = Timeline.new(clock: c, options:(mode: \beats, quant: 1, offset: 2));
t.add(0.5, {"test 1".postln});
t.add(1, {"test 2".postln});
t.add(2, {"test 3".postln});
t.add(4.3, {"test 4".postln});
t.add(9, {"test 5".postln});
);

t.play;
t.plot;

When using CuePlayer just put the offset argument in the timelineOptions.

Here is the Timeline.sc file. Just replace the current one and give it a try:

Timeline.sc.zip

kflak commented 4 years ago

Awesome! Will give it a try when I have a bit more time, hopefully this week!

iani commented 4 years ago

Very interesting. Will also check this.

Iannis

On Sun, Nov 8, 2020 at 8:46 PM Kenneth Flak notifications@github.com wrote:

Awesome! Will give it a try when I have a bit more time, hopefully this week!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dathinaios/CuePlayer/issues/13#issuecomment-723649809, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABMNRHOFH3MPVW3ELZX7TTSO3RPRANCNFSM4QHCARCQ .

dathinaios commented 3 years ago

Completely forgot about this one 😄

@kflak , @iani Any of you had the chance to test it?

kflak commented 3 years ago

Hi there,

Sorry, didn’t have a chance to test it yet! Time just flies by, even in these COVID times... hopefully I’ll have a chance to check it out next week.

On Thu, Feb 25, 2021 at 19:22, Dionysis Athinaios notifications@github.com wrote:

Completely forgot about this one 😄

@kflak , @iani Any of you had the chance to test it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

dathinaios commented 3 years ago

I will have to assume this is working fine 😉

kflak commented 3 years ago

Yes, I suppose so ;-) never got around to testing it, sorry! But it's very, very good to know that the feature is there...

-- Roosna & Flak - Contemporary Dance & Music Web: roosnaflak.com Code: {github,gitlab}.com/kflak Mastodon: @@.*** On 6 Jul 2021 09:47, Dionysis Athinaios wrote:

I will have to assume this is working fine 😉

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.*