[Csnd] Master clock
Date | 2013-08-14 10:28 |
From | orebronerd |
Subject | [Csnd] Master clock |
Is there a way to define a Master clock variable, that I can use both in tempo statements and for example the timing of a LFO? I have tried to define a global variable, but that didn´t work. gitempo = 120 I then put in a tempo statement in the score: t 0 gitempo, but Csound will not accept that. How would you solve this? It is probably very easy, but I can´t figure it out. I mostly want to use it for setting the tempo and making tempo-synced LFO:s, and only have to change the tempo in one place. -- View this message in context: http://csound.1045644.n5.nabble.com/Master-clock-tp5726664.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-08-14 11:21 |
From | joachim heintz |
Subject | Re: [Csnd] Master clock |
i am not sure if it is easy, as Csound has actually two different languages in one csd document: the orchestra language, and the score language. this is the reason why t 0 gitempo does not work. depending on what you want to do, you could consider to include your score events in the orchestra (via event or scoreline) -- in this way you can do everything in the orc language. the use of macros could also be a (dirty) solution. see below for a simple example. but actually it is a fake, as BEAT means something different in orc and sco, and has by this reason to be defined twice in the options. perhaps someone else has a better idea ... best - joachim |
Date | 2013-08-15 06:44 |
From | orebronerd |
Subject | [Csnd] Re: Master clock |
Thank you for your swift reply. A bit annoying that you can´t use the same variables in instrument and score, but you can´t have it all. I have been using Csound now for some years, and it is truly a fantastic program. -- View this message in context: http://csound.1045644.n5.nabble.com/Master-clock-tp5726664p5726716.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-08-15 08:39 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: Master clock |
They are different languages. If you want, you can use only the orchestra language and launch events from there. On 15 Aug 2013, at 06:44, orebronerd wrote: > Thank you for your swift reply. A bit annoying that you can´t use the same > variables in instrument and score, but you can´t have it all. I have been > using Csound now for some years, and it is truly a fantastic program. > > > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/Master-clock-tp5726664p5726716.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug trackers > csound6: > https://sourceforge.net/p/csound/tickets/ > csound5: > https://sourceforge.net/p/csound/bugs/ > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > > Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-08-15 11:46 |
From | orebronerd |
Subject | [Csnd] Re: Master clock |
Thank you for the reply. Yes, I realize that I can use events in the instrument part, but it is a bit cumbersome if you write large scores (well, not that large :-) ), so I think I will stick to manually changing tempo. If I use a variable for the instrument part, and change in the score with a t statement, I only need to change in 2 places. -- View this message in context: http://csound.1045644.n5.nabble.com/Master-clock-tp5726664p5726727.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-08-15 13:34 |
From | Anders Genell |
Subject | Re: [Csnd] Re: Master clock |
Just out of personal curiosity: couldn't you set a score macro from an orchestra? If not, could that be implemented? Regards, Anders 15 aug 2013 kl. 12:46 skrev orebronerd |
Date | 2013-08-15 15:32 |
From | joachim heintz |
Subject | Re: [Csnd] Re: Master clock |
yes, this sounds easy enough. just to note that there is also readf(i) so that you could read lines from an external file, tranform them to strings, and send via the scoreline opcode as score events. joachim Am 15.08.2013 12:46, schrieb orebronerd: > Thank you for the reply. Yes, I realize that I can use events in the > instrument part, but it is a bit cumbersome if you write large scores (well, > not that large :-) ), so I think I will stick to manually changing tempo. If > I use a variable for the instrument part, and change in the score with a t > statement, I only need to change in 2 places. > > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/Master-clock-tp5726664p5726727.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug trackers > csound6: > https://sourceforge.net/p/csound/tickets/ > csound5: > https://sourceforge.net/p/csound/bugs/ > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > > > |
Date | 2013-08-15 15:42 |
From | Steven Yi |
Subject | Re: [Csnd] Re: Master clock |
I don't think that would be easy to implement. However, you could write shared info in a file and then #include it from both the orc and sco. On Aug 15, 2013 8:35 AM, "Anders Genell" <anders.genell@gmail.com> wrote:
Just out of personal curiosity: couldn't you set a score macro from an orchestra? If not, could that be implemented? |
Date | 2013-08-15 18:04 |
From | Jana Hübenthal |
Subject | Re: [Csnd] Re: Master clock |
What about just sending the tempo event from the instrument part and doing the rest of the score as usual? Just an idea, haven't tried that yet... Best, Jana Am 15.08.2013 12:46, schrieb orebronerd: > Thank you for the reply. Yes, I realize that I can use events in the > instrument part, but it is a bit cumbersome if you write large scores (well, > not that large :-) ), so I think I will stick to manually changing tempo. If > I use a variable for the instrument part, and change in the score with a t > statement, I only need to change in 2 places. > > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/Master-clock-tp5726664p5726727.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug trackers > csound6: > https://sourceforge.net/p/csound/tickets/ > csound5: > https://sourceforge.net/p/csound/bugs/ > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > > |
Date | 2013-08-15 18:14 |
From | joachim heintz |
Subject | Re: [Csnd] Re: Master clock |
i think you cannot do that (sending the tempo event from the instrument part), can you? best - joachim Am 15.08.2013 19:04, schrieb Jana Hübenthal: > > What about just sending the tempo event from the instrument part and > doing the rest of the score as usual? Just an idea, haven't tried that > yet... > > Best, > Jana > > > Am 15.08.2013 12:46, schrieb orebronerd: >> Thank you for the reply. Yes, I realize that I can use events in the >> instrument part, but it is a bit cumbersome if you write large scores >> (well, >> not that large :-) ), so I think I will stick to manually changing >> tempo. If >> I use a variable for the instrument part, and change in the score with >> a t >> statement, I only need to change in 2 places. >> >> >> >> -- >> View this message in context: >> http://csound.1045644.n5.nabble.com/Master-clock-tp5726664p5726727.html >> Sent from the Csound - General mailing list archive at Nabble.com. >> >> >> Send bugs reports to the Sourceforge bug trackers >> csound6: >> https://sourceforge.net/p/csound/tickets/ >> csound5: >> https://sourceforge.net/p/csound/bugs/ >> Discussions of bugs and features can be posted here >> To unsubscribe, send email sympa@lists.bath.ac.uk with body >> "unsubscribe csound" >> >> > > > > Send bugs reports to the Sourceforge bug trackers > csound6: > https://sourceforge.net/p/csound/tickets/ > csound5: > https://sourceforge.net/p/csound/bugs/ > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" > > > |
Date | 2013-08-15 18:49 |
From | Jana Hübenthal |
Subject | Re: [Csnd] Re: Master clock |
Don't know... the manual says "usual an 'e', 'i' or 'f'" at the "event" opcode, but ist seems not be limited to that. By the way, there's also a "tempo" opcode and "tempoval" as its counterpart. Never used them, too... Best, Jana Am 15.08.2013 19:14, schrieb joachim heintz: > i think you cannot do that (sending the tempo event from the > instrument part), can you? > best - > joachim > > > Am 15.08.2013 19:04, schrieb Jana Hübenthal: >> >> What about just sending the tempo event from the instrument part and >> doing the rest of the score as usual? Just an idea, haven't tried that >> yet... >> >> Best, >> Jana >> >> >> Am 15.08.2013 12:46, schrieb orebronerd: >>> Thank you for the reply. Yes, I realize that I can use events in the >>> instrument part, but it is a bit cumbersome if you write large scores >>> (well, >>> not that large :-) ), so I think I will stick to manually changing >>> tempo. If >>> I use a variable for the instrument part, and change in the score with >>> a t >>> statement, I only need to change in 2 places. >>> >>> >>> >>> -- >>> View this message in context: >>> http://csound.1045644.n5.nabble.com/Master-clock-tp5726664p5726727.html >>> Sent from the Csound - General mailing list archive at Nabble.com. >>> >>> >>> Send bugs reports to the Sourceforge bug trackers >>> csound6: >>> https://sourceforge.net/p/csound/tickets/ >>> csound5: >>> https://sourceforge.net/p/csound/bugs/ >>> Discussions of bugs and features can be posted here >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body >>> "unsubscribe csound" >>> >>> >> >> >> >> Send bugs reports to the Sourceforge bug trackers >> csound6: >> https://sourceforge.net/p/csound/tickets/ >> csound5: >> https://sourceforge.net/p/csound/bugs/ >> Discussions of bugs and features can be posted here >> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe >> csound" >> >> >> > > > Send bugs reports to the Sourceforge bug trackers > csound6: > https://sourceforge.net/p/csound/tickets/ > csound5: > https://sourceforge.net/p/csound/bugs/ > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > > |
Date | 2013-08-15 20:22 |
From | joachim heintz |
Subject | Re: [Csnd] Re: Master clock |
this was worth a test. calling instr 1 with the line event_i "t", 0, 120 returns an error: INIT ERROR in instr 1: event: param 1 must be "a", "i", "q", "f", or "e" event_i "t" 0 120 but tempo is a good idea. i get somehow funny results at the transition between the two tempos, though (two notes together): |
Date | 2013-08-18 18:32 |
From | Steven Yi |
Subject | Re: [Csnd] Re: Master clock |
The thing to note about Csound's t-statement is that it is used when SCO is processed. The score is read in, then processed with t-statements, then runtime happens. At runtime, the tempo information is no longer around, i.e. it is not stored anywhere. Therefore, any runtime t-statement really has no effect. Csound *could* be modified to apply t-statements at runtime instead of parse-time. So far, what I see in possible ramifications: 1. Run-time performance may be impacted. Not sure by how much; would need testing and measurement. 2. Run-time score parsing semantics would need clarification. Up until now, new score is processed at realtime (tempo 60). It might be something that can be configured, but it would need to default to no tempo processing to maintain backwards compatibility with older systems. Perhaps others can chime in if they see other possible ramifications. On Thu, Aug 15, 2013 at 3:22 PM, joachim heintz |
Date | 2013-09-02 05:49 |
From | Andres Cabrera |
Subject | Re: [Csnd] Re: Master clock |
Hi Steven, This is interesting. I've been pondering on whether a sequencer opcode might be useful:Each seq instance could be made available to the API, and maybe created from it too. Maybe with some additions (duration and separation instead of tempo) a seq instance could be spawned by the score (and then it could be controlled/altered in realtime while performance is running). What do you think? Cheers, Andrés On Sun, Aug 18, 2013 at 10:32 AM, Steven Yi <stevenyi@gmail.com> wrote: The thing to note about Csound's t-statement is that it is used when |
Date | 2013-09-02 18:04 |
From | Jim Aikin |
Subject | [Csnd] Re: Master clock |
> I've been pondering on whether a sequencer opcode might be useful: > > ihandle seq kbpm, knum_beats, ksync, knum_divs, ktrig_instrument [, kp3, > ... , kpN] > > ksync - to force hard sync with another seq > knum_divs - divisions in beat > ktrig_instrument - instrument to be triggered (could also take array or > ftable) > kpX - pfield for note (could also take array or ftable) > > Each seq instance could be made available to the API, and maybe created > from it too. Maybe > with some additions (duration and separation instead of tempo) a seq > instance could be > spawned by the score (and then it could be controlled/altered in realtime > while performance is > running). I like this idea a lot. The fact that you're suggesting knum_divs and starting the p-fields with p3 suggests, however, that you're thinking of a rigid step sequencer implementation, with one note per step -- rather like an old Tangerine Dream analog sequencer. Creating a complex rhythm (or including chords) with this implementation would be difficult, unless I'm missing something obvious (as I sometimes do). --JA -- View this message in context: http://csound.1045644.n5.nabble.com/Master-clock-tp5726664p5727311.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-09-02 20:10 |
From | Tarmo Johannes |
Subject | Re: [Csnd] Re: Master clock |
Hi, Andrés's idea for sequencer like opcode would work definitely in some situations, for me it has been most difficult to calculate the beats' durations in seconds when there is a accelrando, let' say in the score: t 0 60 6 120 And suppose I want to generate an event in the orchestra of every beat of the accelerando. I can't do just ktempo line 60,6,120 since the progression is not linear nor exactyl exponential and the time duration of the 6 accelrating beats is not 6 seconds but something less. If there were equivalent for tempo score statement for use in orchestra (to be calculated in instr 0, why not doubleing the score statement), I mean if the orcestra could know where any beat in a given tempo is, would be great. I know that there are equations by Istvan Varga and Steven Yi to calculate it, but something easier would be very welcome (for example for generating dynamic click-tracks). best! tarmo On Monday 02 September 2013 10:04:09 Jim Aikin wrote: > > I've been pondering on whether a sequencer opcode might be useful: > > > > ihandle seq kbpm, knum_beats, ksync, knum_divs, ktrig_instrument [, kp3, > > ... , kpN] > > > > ksync - to force hard sync with another seq > > knum_divs - divisions in beat > > ktrig_instrument - instrument to be triggered (could also take array or > > ftable) > > kpX - pfield for note (could also take array or ftable) > > > > Each seq instance could be made available to the API, and maybe created > > from it too. Maybe > > with some additions (duration and separation instead of tempo) a seq > > instance could be > > spawned by the score (and then it could be controlled/altered in realtime > > while performance is > > running). > > I like this idea a lot. The fact that you're suggesting knum_divs and > starting the p-fields with p3 suggests, however, that you're thinking of a > rigid step sequencer implementation, with one note per step -- rather like > an old Tangerine Dream analog sequencer. Creating a complex rhythm (or > including chords) with this implementation would be difficult, unless I'm > missing something obvious (as I sometimes do). > > --JA > > > > -- > View this message in context: > http://csound.1045644.n5.nabble.com/Master-clock-tp5726664p5727311.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug trackers > csound6: > https://sourceforge.net/p/csound/tickets/ > csound5: > https://sourceforge.net/p/csound/bugs/ > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" |
Date | 2013-09-04 22:17 |
From | Andres Cabrera |
Subject | Re: [Csnd] Re: Master clock |
Hi, Bear in mind that you trigger instrument instances, which is not the same as notes :) So you can have chords, send net events, whatever you want, and because each note can get a different set of pfields, you can do a lot of things. There is the issue of rhythm. You could make the subdivision large to encompass all your needs, or you could trigger intruments that thmeselves trigger other rhythms.Andrés On Mon, Sep 2, 2013 at 10:04 AM, Jim Aikin <midiguru23@sbcglobal.net> wrote:
|