Kyma Forum
  Tips & Techniques
  ANU Quantum Random Number stream

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

next newest topic | next oldest topic
Author Topic:   ANU Quantum Random Number stream
cristian_vogel
Member
posted 18 February 2013 11:51         Edit/Delete Message   Reply w/Quote
Heres an interesting thing , real random numbers
http://qrng.anu.edu.au/index.php

You can download a raw binary file rather than stream directly. But I can't figure out how to import that RAW file into Kyma, as a WAV. Any suggestions?


IP: Logged

SSC
Administrator
posted 18 February 2013 19:35         Edit/Delete Message   Reply w/Quote
Is there a way to save them as numbers, one per line, in a .txt file? If so then you could use the "From text file" template in the Sample editor...

IP: Logged

photonal
Member
posted 20 February 2013 15:55         Edit/Delete Message   Reply w/Quote

Archive.zip

 
Here's a Quartz Composer solution using a JSON parser from smokris on kineme ( http://kineme.net/composition/smokris/JSONStructure )

There are two versions, one uses the 0-255 URL and the other for the 0-65535

The URL is read every 4 seconds, and the returned data is parsed and sent to an OSC sender - this could then be fed into Kyma via OSCulator.

A hack I know - but it gets the data out of the server in a stream. The 'Period' of the 'Wave Generator' (LFO) controls the frequency of the 'Pulse' to send the URL each time.

IP: Logged

photonal
Member
posted 20 February 2013 16:25         Edit/Delete Message   Reply w/Quote

Archive.zip

 
Here's another version which saves the stream to a text file (called RND.txt)

The additional file, RTN.txt is just a 'Return' to be used after appending each number to the RND.txt file.

You should do a 'touch RND.txt' using the Terminal to initially create the file (so that it can then be written to). Also, the file path '/Users/andrew/Documents/RND.txt' should be changed to match your setup.

i.e. /Users/[YOUR USER NAME]/Documents/RND.txt or some other path where RND.txt is located.

It utilises some extra QC patches, i.e. 'Kineme String With File' and 'Kineme Text File Writer' which can be obtained here: http://kineme.net/release/FileTools/11

[This message has been edited by photonal (edited 20 February 2013).]

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