![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: (1 triggerTimeToNext: !DurOfNext s) |
cristian_vogel Member |
![]() ![]() ![]() 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"
IP: Logged |
SSC Administrator |
![]() ![]() ![]() 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 -=-=-=- IP: Logged |
Bill Meadows Member |
![]() ![]() ![]() 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 |
![]() ![]() ![]() 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 |
![]() ![]() ![]() quote: 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 |
![]() ![]() ![]() just for giggles I transcribed the list ![]() * IP: Logged |
cristian_vogel Member |
![]() ![]() ![]() 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 |
![]() ![]() |
This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.