![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: DNA Echoes | |
robertjarvis Member |
![]() ![]() ![]() I'm having fun listening to DNA strings using the 'Text to Pitch' prototype. Here is the DNA for the tobacoo plant (Nicotiana) for example: - GGTTCTGGGGTTTCCACGCTTGAAAAAAAAAACCCGGGGCGTGTCGTCCAAATCATCGGTCCGGTACTAGA Now notice that there are many repeating sequences in the chain. I was wondering whether if it was possible to script that every time a letter (or sequence of letters) was immediately repeated it could be played at a quieter volume than its last playing. When the repeating pattern was over, the next time it was played it would be at its first volume. For example the beginning of the chain: GGTTCTGGGGT would be two 'G' notes, the second of which would be quieter; two 'T' notes, the second of which would be quieter; a 'C' note; then a 'T' note sounding at its first (louder) volume; four 'G' notes each getting quieter; and a 'T' not sounding at its original volume. Is there an easy way to script this, or do I do it manually? Any help/advice (or other stimulating input) greatly appreciated. Thanks!
[This message has been edited by robertjarvis (edited 29 January 2007).] IP: Logged | |
SSC Administrator |
![]() ![]() ![]() If you save the previous event's pitch and amplitude in variables, you could have something like prevPch = pch ifTrue: [vol := prevVol * 0.5]. If this is not what you need, please post your script here and I could try to offer a more specific suggestion. IP: Logged | |
robertjarvis Member |
![]() ![]() ![]()
I have a few ideas that I would like to eventually incorporate: For example, would it be possible to control which part of the file is being read (i.e., characters 11 - 120) and might it be possible to change this parameter in real time? In the meantime, I'll keep plugging away.... IP: Logged | |
SSC Administrator |
![]() ![]() ![]()
prevPch := 60. [f atEnd] whileFalse: [ | newPch newVol | "Read next character from the file and turn it into an integer." "For characters, increment time by one beat. For punctuation, increment by one quarter beat." "If the new pitch is the same as the previous pitch, halve the volume." self "Save the current pitch and volume to compare against the next item read from the file." IP: Logged | |
robertjarvis Member |
![]() ![]() ![]() Thanks. I'll examine this, play around with it, add and subtract ideas, and see what I come up with! IP: Logged | |
SSC Administrator |
![]() ![]() ![]() "add and subtract ideas, and see what I come up with!" recombinant life forms? 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.