Kyma Forum
  Kyma Support
  Importing SDIF?

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

next newest topic | next oldest topic
Author Topic:   Importing SDIF?
cristian_vogel
Member
posted 12 April 2006 04:54         Edit/Delete Message   Reply w/Quote
is this possible?
i played around with the Loris open source Spectrum Analyzer, and it generates SDIF files. Kyma doesnt seem to be able to read them, even if I change the .sdif to .spc

Also, Tom Erbe's SoundHack, can make very nice analysis files , but also as .sdif

Given that the Spectral editor in Kyma is a little awkward to use, ( no undo function for example ) , it woud be nice to have a choice of external Spectral Editor... anyone found anything out there?

IP: Logged

cristian_vogel
Member
posted 12 April 2006 05:40         Edit/Delete Message   Reply w/Quote
ok, just spent an hour looking around, and at the suggestion of someone at SmartElectronix, I propose that Kyma X should support the .SDIF format, as it is now the standard for spectral sound analysis - Even more important, seeing as a very big part of the Kyma system is about Spectral analysis and resynthesis!!

IP: Logged

KX
Member
posted 12 April 2006 17:26         Edit/Delete Message   Reply w/Quote
I second that! SDIF support might free you at ssc to upgrade the spectrum analyser forever...

IP: Logged

Kelly Fitz
Member
posted 13 April 2006 16:56         Edit/Delete Message   Reply w/Quote
You can generate Spc files using the SpcFile class in Loris. For compatibility with the Spc editor and many of the other Kyma Sounds, you will want to generate the sine-only (not bandwidth enhanced) Spc files. The bandwidth enhanced versions are not compatible with the Spc editor, and cannot be manipulated as sample streams as easily as the sinusoidal Spc files.

The exact procedure depends on which Loris dialect you are using (C, C++, Python). If you are using C, you will want to look for the exportSpc function. Otherwise, look for a class called SpcFile. Its interface will be very similar to that of SdifFile, which you might be using to export partials in SDIF format.

The file formats are quite different, simply changing the suffix isn't going to suffice.

HTH,
-kel

IP: Logged

Kelly Fitz
Member
posted 13 April 2006 16:58         Edit/Delete Message   Reply w/Quote
Btw, you can also import 1TRC SDIF files generated by other applications (like SoundHack, I suppose, or Spear) into Loris and export them as Spc files for use in Kyma.

-kel

IP: Logged

cristian_vogel
Member
posted 14 April 2006 04:30         Edit/Delete Message   Reply w/Quote
and what if you're not a C++ programmer, but a lowly musician looking for a way of generating and manipulating source sounds to feed to the Capybara? It took me two days and a lot of wasted time, just trying to *build* Loris utilities, and I really have no idea what you are referring to .. is there really no standalone, easy to use utility to export to SPC from SDIF?

The Spectrum editor of Kyma is not intuitive enough to use in highly demanding creative situations, like the one i'm in right now!

I need a tool to generate/ fix/edit/ tune/ manipulate spectral source files , before exploring them with live spectral sound manipulations in Kyma - the best thing in the universe would be an interface as good as Metasynth working as spectral manipulator and Kyma as realtime spectral rebuilder - but thats just a dream i spose... unless i learn how to program in C .. which is somewhere i don't really want to go, seeing as I'm actually a musician , not a computer programmer ( although the lines are getting blurred... !! )


IP: Logged

tuscland
Member
posted 14 April 2006 05:04         Edit/Delete Message   Reply w/Quote
Hi Cristian !

Well, I guess that's the price to pay when you want to use cutting edge tools!
I'll see what I can do in order to make it easy for you, like a droplet or something that can convert easily your files, more news soon ...


Best from,
Camille

IP: Logged

tuscland
Member
posted 14 April 2006 06:37         Edit/Delete Message   Reply w/Quote

sdif2spc.zip

 
Here is a small droplet, the icon is ugly, the conversion parameters are the defaults ones (I haven't tested the app because I am not in my studio), but the conversion actually works.

Could you please test it on your computer? The conversion works for me ... but it is a bit long to launch the app. The usage is VERY simple : drag the SDIF files on the app's icon, and wait for execution, the SPC files should appear soon.

You will need Mac OS X 10.4 at least, I think.
The Loris sources were compiled on Mac OS X 10.4.6.

Cam

IP: Logged

cristian_vogel
Member
posted 14 April 2006 07:39         Edit/Delete Message   Reply w/Quote
hi cam

well done for having a crack at this! Appreciated !

well, I've dragged some SDIF files onto the .app you made, but nothing seems to be appearing anywhere - what output file should I be looking for and where do you expect it would appear?

I hope my Loris library is installed correctly - I have been able to run Loris-Analyze without problems, so I guess its working ok...


IP: Logged

tuscland
Member
posted 14 April 2006 09:38         Edit/Delete Message   Reply w/Quote

sdif2spc.zip

 
Uh, you should see the new files at the same place where the SDIF ones are.
No need for installing the library, it's included in the bundle.

Can you please output the result of this expression you have to run in the Terminal :
*** NOTE: please put the application in the /Applications folder. ***
copy and paste this in Terminal and send me the result :

/Applications/sdif2spc.app/Contents/MacOS/sdif2spc

You should read this :

> (in /Users/camille)
> starting ... (Fri Apr 14 16:36:35 2006)
> done (Fri Apr 14 16:36:35 2006)


IP: Logged

SSC
Administrator
posted 14 April 2006 09:53         Edit/Delete Message   Reply w/Quote
And BTW, Camille is an excellent musician too! (Check out http://www.neimo.com/)--Proof that learning in one area (programming) won't necessarilly displace your knowledge in another area (music)! Come to think of it, composers and programmers are both building abstract structures (one with electrons, one with air pressure variations---both are as beautiful as they are ephemeral)

IP: Logged

tuscland
Member
posted 14 April 2006 10:09         Edit/Delete Message   Reply w/Quote
How could people know if the link is broken :-)
Thank you SSC!

IP: Logged

SSC
Administrator
posted 14 April 2006 10:49         Edit/Delete Message   Reply w/Quote
http://www.neimo.com/

IP: Logged

cristian_vogel
Member
posted 16 April 2006 18:04         Edit/Delete Message   Reply w/Quote
(in /Users/cristian)
starting ... (Mon Apr 17 00:57:25 2006)
done (Mon Apr 17 00:57:25 2006)

is the result i got from running the expression - so seems to be as you expected, but i'm not getting any .spc file generated - maybe my .sdif files are not the right type or something? i'm working with ones generated by Soundhack

and cool sounds at Nei"mo site !

IP: Logged

tuscland
Member
posted 16 April 2006 18:46         Edit/Delete Message   Reply w/Quote
Thanks!
For the SDIF, yes, I fear the format is not the one expected, as the output show the program seem to run correctly on your computer. I have tested with the SDIF files in the Loris distribution as I didn't had some for myself. Maybe would you accept to send me one of those ? My address is cam@neimo.com.

IP: Logged

Kelly Fitz
Member
posted 26 April 2006 11:55         Edit/Delete Message   Reply w/Quote
Hithere.

quote:
Originally posted by cristian_vogel:
and what if you're not a C++ programmer, but a lowly musician looking for a way of generating and manipulating source sounds to feed to the Capybara? It took me two days and a lot of wasted time, just trying to *build* Loris utilities, and I really have no idea what you are referring to .. is there really no standalone, easy to use utility to export to SPC from SDIF?

No.

quote:

I need a tool to generate/ fix/edit/ tune/ manipulate spectral source files , before exploring them with live spectral sound manipulations in Kyma - the best thing in the universe would be an interface as good as Metasynth working as spectral manipulator and Kyma as realtime spectral rebuilder - but thats just a dream i spose...

Yes, that is a dream I often have too. Someday, I hope to be able to write such a program. But, as my grandmother is fond of reminding me, I was born good-looking rather than rich (she hasn't seen me in a while) so I have to keep a day job, and the one I have doesn't give me the time to develop both the back end _and_ the front end of such a tool. I picked the back end. If you know of a sympathetic patron of the arts who wants to keep the lights on in my house while I work on your spectral manipulator, be sure to let me know...

In the mean time, you can try a tool called SPEAR by Michael Klingbeil. It opens and displays SDIF files generated by Loris, and also has its own analysis engine. I am not sure that it preserves all the structure of Loris SDIF files, but it might be worth a look. The interface is fundamentally similar to the Kyma spectrum editor though. If you want something very different from a time-frequency plot of partials, you won't find it there.

You will still need that droplet for converting SDIF to SPC.

cheers,
-kel


IP: Logged

cristian_vogel
Member
posted 06 May 2006 07:55         Edit/Delete Message   Reply w/Quote
the Soundhack SpecAnalysis sounds fantastic and there are also loads of excellent mutation algorithms that can be performed on SDIF files - but the droplet posted by Camille doesn't seem to want to convert Soundhacks SDIF results...

How much would a project like you have in mind need , Kelly? a Metasynth like front end for .SPC file manipulation?

IP: Logged

Kelly Fitz
Member
posted 13 May 2006 11:39         Edit/Delete Message   Reply w/Quote
quote:
Originally posted by cristian_vogel:
the Soundhack SpecAnalysis sounds fantastic and there are also loads of excellent mutation algorithms that can be performed on SDIF files - but the droplet posted by Camille doesn't seem to want to convert Soundhacks SDIF results...

How much would a project like you have in mind need , Kelly? a Metasynth like front end for .SPC file manipulation?


SoundHack might be generating a different flavor of SDIF file from the ones that Loris uses. Loris only understands its own format and the 1TRC format, which is most similar to what Loris uses. SDIF supports many other data formats that are less like additive sinusoidal model data, and make no sense in Loris. Similarly, Metasynth's spectral data is only superficially similar to Loris data.

If, when you say "how much", you mean what would it take for _me_ to do it, it would require that I not have a day job for the next year to develop a nice interface for Loris analysis and editing.

-kel

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