[Csnd] Irregular metronome
Date | 2023-04-04 10:54 |
From | Enrico Francioni <00000005323c8739-dmarc-request@LISTSERV.HEANET.IE> |
Subject | [Csnd] Irregular metronome |
Hi everyone, I ask for help I would like to design a somewhat particular metronome: a metronome that always beats a given bpm (eg 53 MM), but which occasionally has short irregularities; the irregularities all have a precise action time and duration, therefore not random. I know how to make a metronome, but a metronome with this particular feature, at the moment I'm not able. The only idea that came to me was to fix all the players step by step in the score i Statements of the instrument that manages the metronome… here is an example: |
Date | 2023-04-04 12:08 |
From | ST Music |
Subject | Re: [Csnd] Irregular metronome |
I'm not sure I understand precisely what you mean, but have you considered a table or array to hold the rhythmic durations? In this example 1 = 1 beat, .25 = sixteenth note etc. </CsOptions> <CsInstruments> sr = 44100 kr = 44100 nchnls = 2 nchnls_i = 1 0dbfs = 1 gkcount init -1 instr trigger ibpm = 120 ibeat = 60/120 irhythm[] fillarray 1, 1, 1, 1, .25, .25, .25, .75, 1, .75, .5, .25 ilen = lenarray(irhythm) ktrig metro 1/ibeat/irhythm[gkcount] schedkwhen ktrig, 0, 0, 1, 0, .1 if ktrig == 1 then gkcount += 1 endif if gkcount == ilen then gkcount = 0 endif endin instr 1 kenv linseg 0, .002, .2, .1, 0 ametro oscil kenv, 3210 outs ametro, ametro endin </CsInstruments> <CsScore> i"trigger" 0 16 e </CsScore> </CsoundSynthesizer> This will adapt to any bpm value you enter. Perhaps not the best solution, maybe someone else has easier solution. Scott On Tue, Apr 4, 2023, 5:49 AM Enrico Francioni, <00000005323c8739-dmarc-request@listserv.heanet.ie> wrote: Hi everyone, |
Date | 2023-04-04 12:13 |
From | ST Music |
Subject | Re: [Csnd] Irregular metronome |
Sorry, it should be: ibpm = 120 On Tue, Apr 4, 2023, 7:08 AM ST Music, <stunes6556@gmail.com> wrote:
|