Kyma Forum
  Kyma Support
  setting sample file header info

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

next newest topic | next oldest topic
Author Topic:   setting sample file header info
cristian_vogel
Member
posted 15 November 2008 13:06         Edit/Delete Message   Reply w/Quote
How can I set the velocity range, base pitch etc in the header of a sample file?

Do I need another program to do that?


IP: Logged

Luddy
Member
posted 15 November 2008 18:04         Edit/Delete Message   Reply w/Quote
Oh, I asked Kurt and Carla that very question some time ago, and they sent me these snippets (which work great):

quote:

Here is some code that you could use in a text file or a tool to set the header information of already existing sample files. (It cannot be used in a Script that generates the recordings because the sample files will not exist already.)

"Create a SamplesFile object."
sf := 'aString' asSampleFile.

"Set various bits of header information. aPitch is interpreted as MIDI note number if given as a number without units; could use a value with units (100 hz). aVel is 0-127, always unitless. aTime is interpreted as in units of samples; could use a value with units (1.5 s)."
sf uiBasePitch: aPitch.
sf uiLowPitch: aPitch.
sf uiHighPitch: aPitch.

sf uiLowVelocity: aVel.
sf uiHighVelocity: aVel.

sf uiLoopStart: aTime.
sf uiLoopEnd: aTime.

"Write the updated header back to the disk."
sf updateHeader.


These are used by the autosampling tool I posted on the wiki btw.

hth,

-Luddy

IP: Logged

cristian_vogel
Member
posted 17 November 2008 09:13         Edit/Delete Message   Reply w/Quote
great thanks luddy

I;m gonna try and use your tool today - I have made a massive sample insutrument from drum hits with multiple mics, keeping the mic mix live during sample playback... but the load times are huge, so I want to use your tool to re-sample the mic mixed hits... will keep you posted

[This message has been edited by cristian_vogel (edited 17 November 2008).]

[This message has been edited by cristian_vogel (edited 17 November 2008).]

IP: Logged

cristian_vogel
Member
posted 18 March 2009 11:45         Edit/Delete Message   Reply w/Quote
I just needed to do this with the headers ... I have to ask how are we supposed to know about the SmallTalk command 'updateHeader' if its not detailed in the manual?

IP: Logged

SSC
Administrator
posted 18 March 2009 11:56         Edit/Delete Message   Reply w/Quote
quote:
How can I set the velocity range, base pitch etc in the header of a sample file?

1. Open the file in the Kyma Sample File Editor.
2. Click the "..." button.
3. Select Edit Info

You can set the velocity range, base pitch, etc. in this dialog box.

IP: Logged

SSC
Administrator
posted 18 March 2009 12:18         Edit/Delete Message   Reply w/Quote
quote:
I have to ask how are we supposed to know about the Smalltalk command 'updateHeader' if its not detailed in the manual?

I think Luddy was just trying to help you out by sharing a piece of code; I don't think he intended you to think that it is part of the official Kyma release or something officially documented in the manual.

Sometimes we'll write a snippet of code to help someone with a specific task and send it to them via a private email. That does not necessarily mean that we intend to support that little piece of code, guarantee that it will continue to work in the future, document it in the manual, or make it part of the Kyma release.

Sometimes a cigar is just a cigar. (and sometimes a hastily hacked together piece of code is just something useful to help someone out).


IP: Logged

cristian_vogel
Member
posted 21 March 2009 12:33         Edit/Delete Message   Reply w/Quote
I understand that, I didn't mean to be critical, just frustration when I was trying to solve a semmingly simple problem using the resources available to me without having to bother you guys! - thanks for detailing the straightforward way of updating that info using the Kyma Sample Editor.

IP: Logged

SeanFlannery
Member
posted 25 March 2009 06:26         Edit/Delete Message   Reply w/Quote
Warning: red hot dissent follows.


I have to say I find the last SSC comment quite arrogant.
~~~
I think Luddy was just trying to help you out by sharing a piece of code; I don't think he intended you to think that it is part of the official Kyma release or something officially documented in the manual.

Sometimes we'll write a snippet of code to help someone with a specific task and send it to them via a private email. That does not necessarily mean that we intend to support that little piece of code, guarantee that it will continue to work in the future, document it in the manual, or make it part of the Kyma release.

Sometimes a cigar is just a cigar. (and sometimes a hastily hacked together piece of code is just something useful to help someone out).
~~~


let me paraphrase this how i read it...

"we will share with some users an undocumented capy/Smalltalk work-around that we may or may not have any intention of supporting in future. Dont ask us for the complete reference on capy/smalltalk as implemented in Kyma coz it's a moving target."

I politely suggest that dedicated Kyma users who have spent good money and time on their investment deserve better quality support than the pithy response offered above. This reflects badly apon the company.

respectfully
Sean


IP: Logged

SSC
Administrator
posted 25 March 2009 08:49         Edit/Delete Message   Reply w/Quote
Smalltalk is unusual in that you can modify the language itself by adding new messages to it. Fortunately (because otherwise it would be boring), we are modifying and adding to Kyma (and Smalltalk) on a daily basis. Most new developments don't see the light of day and others are not released for months or even years while we test them out, modify or refine them. It would in fact be unfair to make them public before they are "settled". Imagine writing a piece of music that depends on the code being a certain way and then having it be "improved" in such a way that you could no longer rely on it behaving the same way.

Sean, sorry you interpreted my attempt at saying this in a lighthearted or humorous way to be "arrogant" as it was certainly not intended to be insulting to anyone! Humor can be a dangerous thing in low-bandwidth communication settings like forums and email where body language cues are not visible.

IP: Logged

SeanFlannery
Member
posted 26 March 2009 03:01         Edit/Delete Message   Reply w/Quote
Apologies SSC, I see your point.

Best regards,
Sean

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