Kyma Forum
  Kyma Support
  (1 triggerTimeToNext: !DurOfNext s)

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   (1 triggerTimeToNext: !DurOfNext s)
cristian_vogel
Member
posted 09 July 2009 11:53         Edit/Delete Message   Reply w/Quote
I found this one in one of SCC's sounds at the twiki , "Unit that randomly selects a sample and plays through full sample before selecting and playing next sample"


Seems very useful, but I dont really know how it behaves exactly. Anybody know?

IP: Logged

SSC
Administrator
posted 09 July 2009 14:14         Edit/Delete Message   Reply w/Quote
I think the Sound in question is the one called 'randomlyselectplayentiresample.kym' at this link: http://www.symbolicsound.com/cgi-bin/bin/view/Share/Sounds#Sampling

The Script gives you a file dialog and asks you to select one sample out of the folder. It computes nbrFiles using:

filesInSameFolder := fileName fileNamesOfSameTypeInSameFolder.

In the Sound itself, there's a SoundToGlobalController that generates a random index named !RandIndex that can be shared by all modules in the Sound.

((1 triggerTimeToNext: !DurOfNext s) nextRandom abs * ?nbrFiles) truncated + 1

Where does !DurOfNext come from? It is generated by the other SoundToGlobalController using the expression:

!RandIndex of: ?durations

Where does the variable ?durations come from? It is an Array computed and passed in from the Script using the Smalltalk expression:

(filesInSameFolder collect: [:sf | sf sampleFileDuration removeUnits]).

Multisample is the only part of this Sound actually generating an audio signal. It is triggered by:

1 triggerTimeToNext: !DurOfNext s

and selects which file to play using the generated !RandIndex

-=-=-=-
“In Smalltalk, everything happens somewhere else.” – Adele Goldberg

IP: Logged

Bill Meadows
Member
posted 09 July 2009 19:55         Edit/Delete Message   Reply w/Quote
1 triggerTimeToNext: !DurOfNext s

This is the first I've ever heard of this one - I could have used it a year ago...

Is there an up to date, comprehensive list of such gems? I tried searching Twiki and found nothing about it. (Other than this same thread.)


IP: Logged

SSC
Administrator
posted 10 July 2009 12:18         Edit/Delete Message   Reply w/Quote
Best way to see the most up to date list is to type Ctrl+Shift+H in a parameter field.

IP: Logged

Bill Meadows
Member
posted 10 July 2009 23:59         Edit/Delete Message   Reply w/Quote
quote:
Originally posted by SSC:
Best way to see the most up to date list is to type Ctrl+Shift+H in a parameter field.

Holding down the mouse button and scrolling through a pull down menu while trying to figure out what an expression does is the best way to do this???

(btw - I just did this and found lots of expressions I'd never heard of...)

[This message has been edited by Bill Meadows (edited 10 July 2009).]

IP: Logged

SeanFlannery
Member
posted 11 July 2009 02:08         Edit/Delete Message   Reply w/Quote
just for giggles I transcribed the list

*
**
+
,
-
/
//
<
abs
accumulate
accumulateIf:
accumulateIf:initialValue:reset:
accumulateWhile:
accumulateWhile:initialValue:reset:
activeWhen:
alignWith:
asLeftPan
asLogicValue
asMidiOutPutEvent
asRightPan
asToggle
bpm
bpm:
bpm:dutyCylce:
brownianTrigger:
browningTriggerStart:deviation:
ceiling
clipTo01
clipToAbs1
clipToAbs2
closestPowerOfTwo
cos
countTriggers
countTriggersMod:
countTriggersMod:reverse
db
dB
durationBetweenTriggers
durationBetweenTriggers:
durationOfGate
eq:
exp
extractClock
extractDuration
false:true:
floor
fullRamp
fullRamp:
gateWhen:
ge:
gt:
h
hasChangedInLast:
hasChangedReset:
hz
identifier:
initialSampleAndHold:
inSOSPitch
into:
intoSorted:
inverse
le:
log
lt:
m
max:
min:
mod:
ms
ne:
neg:zero os:
neg:zero os:initially:
negated
nextChaotic:
nextChaotic:seed:reset:
nextNormal
nextNormalWithSeed:
nextRandExp
nextRandExpWithSeed:
nextRandom
nextRandomWithSeed:
nn
normal
normalTrigger:
normalTriggerCenter:deviation:
normCos
normSin
number
of:
onOff
ramp
ramp:
randExp:
randExpTrigger
random
randomTrigger:
randomTriggerCenter:deviation:
removeUnits
repeatingFullRamp
repeatingFullRamp:
repeatingRamp
repeatingRamp:
repeatingTriangle
repeatingTriangle:
rounded
roundTo:
s
sameForLast:tolerance
samp
sampleAndHold:
setReset:
sign
sin
smooth:
smoothed
sqrt
squared
sustainBy:
swarmFollowFromPosition:velocity:acceleration:friction:
switchedOff
switchedOn
threshold:
tick
timbre
toggleWhen:
trackAndHold:
triangle
triangle:
triggerEvery:
triggerEverySampled:
triggerTimeToNext:
true:false:
trueForLast:
trueIf:sameForLast:
truncated
twoExp
twoLog
updateInternalState
usec
velocity
vmax:
vmin:
wrapTo02
\\


IP: Logged

cristian_vogel
Member
posted 16 July 2009 05:47         Edit/Delete Message   Reply w/Quote
there are a few gems in there

what about this one..

neg: zero: pos: initially:

or intoSorted:


!!

a built in help with examples that can be compiled a la PD/SuperCollider is the best way to keep track of recent additions to the CapyTalk / SmallTalk code

[This message has been edited by cristian_vogel (edited 16 July 2009).]

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c