Jump to content

Tips on large data import/usage?


hujairi

Recommended Posts

I am curious to know whether anyone has managed to use external large data sources to generate results within Opusmodus? Any examples such as using APIs from something such as Twitter on other online large data sources be it weather or financial stock data would be interesting. I'd like to see how different data sources could also be utilized/transformed within Opusmodus.

 

Thanks.

Link to comment
Share on other sites

Hello,

 

For example, any of the links listed here: http://www.smartdatacollective.com/bernardmarr/235366/big-data-20-free-big-data-sources-everyone-should-know

 

I've just been looking at different sonification approaches taken by different electronic musicians/media artists, and was just curious to see it would be possible to get a data load in the form of tables and import them into Opusmodus, and then transform the data into integers or intervals, and from there, start manipulating the results even further. In my last attempt to compose in Opusmodus, I took a poem and used the different "text" functions, which are actually quite fun to play with. It would be nice to see which languages are possible and which aren't. I need to explore these matters a little more.

 

Hasan 

Link to comment
Share on other sites

To import various tables would need number of functions for each table.

Mapping any data to pitches or any other parameter can be done with DEF-CASE or CREATE-LIBRARY function.

 

At the moment I am working on spectral composition functions with data files as a source.

 

Data example:

par-text-partials-format
point-type time frequency amplitude
partials-count 5188
partials-data
0 14 0.000000 0.187415
0.000000 12057.894531 0.000101 0.012494 12063.160156 0.000068 0.037483 12090.256836 0.000050 0.049977 12089.161133 0.000072 0.062472 12088.927734 0.000090 0.074966 12089.553711 0.000092 0.087460 12090.407227 0.000074 0.099955 12090.043945 0.000054 0.112449 12088.445312 0.000055 0.137438 12052.342773 0.000091 0.149932 12025.845703 0.000064 0.162426 12027.272461 0.000042 0.174921 12049.388672 0.000037 0.187415 12049.388672 0.000000
1 14 0.000000 0.187415
0.000000 11805.857422 0.000155 0.012494 11809.532227 0.000107 0.024989 11815.603516 0.000094 0.037483 11816.318359 0.000098 0.049977 11812.620117 0.000099 0.062472 11809.903320 0.000105 0.074966 11810.748047 0.000094 0.087460 11810.438477 0.000065 0.099955 11805.530273 0.000057 0.112449 11822.302734 0.000090 0.149932 11796.957031 0.000115 0.162426 11829.777344 0.000072 0.174921 11835.147461 0.000053 0.187415 11835.147461 0.000000
2 43 0.000000 0.562245
...

 

The data file then is converted to library format:

(def-library spec-tbn
(:section frames
  p0 '(0.0 2549.2737 3.3E-5 0.012494 2558.6868 8.6E-5 0.024989 2560.725 1.55E-4 0.037483 2563.198 2.2E-4 0.049977 2565.248 2.65E-4 0.049977 2565.248 2.65E-4 0.062472 2565.5603 2.54E-4 0.074966 2557.2236 1.97E-4 0.08746 2553.4763 1.61E-4 0.099955 2556.5354 1.16E-4 0.112449 2560.5886 9.7E-5 0.124943 2559.0767 7.4E-5 ...)
  p1 '(0.0 2460.5183 3.3E-5 0.012494 2457.8718 7.3E-5 0.024989 2467.1047 8.6E-5 0.037483 2475.6711 8.5E-5 0.049977 2483.0276 8.7E-5 0.049977 2483.0276 8.7E-5 0.062472 2487.2944 9.0E-5 0.074966 2489.3833 8.3E-5 0.08746 2485.5657 6.4E-5 0.099955 2505.8418 3.4E-5 0.112449 2483.4546 9.7E-5 0.124943 2461.0674 1.6E-4 0.124943 2461.0674 1.6E-4 0.137438 ....

 

And with LIBRARY function we retrieve the desired frame:

(library 'spec-tbn 'frames 'p273)
=> (2.011587 1575.7258 2.89E-4 2.024082 1573.7743 2.95E-4 2.036576 1569.0957 2.63E-4 2.04907 1569.0957 0.0)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy