Kyma Forum
  Kyma Support
  MemoryWriter weirdness ... bug or mistake?

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

next newest topic | next oldest topic
Author Topic:   MemoryWriter weirdness ... bug or mistake?
tuscland
Member
posted 19 April 2006 14:43         Edit/Delete Message   Reply w/Quote

WavesetRepeater.zip

 
Hi,

Here a sound on which I am currently working.
In this sound, if you play the "Recorder" sound (StepWriter prototype), you can some OscilloDisplays. The third one is the ramp that indexes the recording made by the "Repeat" MemoryWriter.

There is a kind of leftover of another recording at the beginning (the sine period). Why do I have this? I tried to schelude the Writer on the same processor as the reader, but nothing works. More weird: if I make the "Repeat" MemoryWriter silent, I still get this small sine, as it was coming from elsewhere, but WHERE?

Please SSC, could you have a look at this and give me some pointers of where I may be wrong?


Best from,
Camille

[This message has been edited by tuscland (edited 19 April 2006).]

IP: Logged

SSC
Administrator
posted 19 April 2006 16:38         Edit/Delete Message   Reply w/Quote
If you are muting the MemoryWriter, that would point to the WaveShaper as the source of the audio. That would suggest that the index into the WaveShaper might be incorrect. Can you test the output of Pete's 'Index Ramp' module to see whether its output is correct (maybe its output is 0 or -1 at the beginning? Or maybe it is always counting?)

IP: Logged

tuscland
Member
posted 19 April 2006 16:47         Edit/Delete Message   Reply w/Quote
I fear it is not that.
I had the problem in a totally different setup, and it seems that the problem comes from the Oscilloscope prototype when a Up/Down Counter feeds it. Weird!?
I am sorry, I don't have more clues.

IP: Logged

SSC
Administrator
posted 19 April 2006 20:27         Edit/Delete Message   Reply w/Quote
So when you delete the Oscilloscope that sound goes away?

IP: Logged

tuscland
Member
posted 20 April 2006 04:23         Edit/Delete Message   Reply w/Quote
Yes, actually the sound seems to be never heard, it is just display thing.

IP: Logged

tuscland
Member
posted 20 April 2006 04:59         Edit/Delete Message   Reply w/Quote

oscilloscopedisplayweirdness.kym

 
OK, so here a version of a stripped down version of my previous sound.

If you look at the output of RecTriggers, there is this glitch at the beginning of the OscilloscopeDisplay. By the way, in the VCS it should be named RecTriggers, not PlayTriggers, I have not set the names of the widgets manually, so there's some sort of confusion here.

If you remove the OscilloscopeDisplay prototype PlayTriggers, the output of RecTroggers, is not the same.

Cancel the previous action and now, and delete the RecTriggers module. You can see that small sine period? How could a sine could come out of a GateToTrigger?

Weird!
That's what I said!

Camille

[This message has been edited by tuscland (edited 20 April 2006).]

IP: Logged

tuscland
Member
posted 20 April 2006 06:17         Edit/Delete Message   Reply w/Quote
I think the problem comes from the 1 sample MemoryWriter because I now have a problem in another sound.

It seems that there are bad memory interactions between Up/Down Counter, Oscilloscope and MemoryWriter.

In this other sound, the is a 1 sample MemoryWriter, if I check Global, I don't have any output, if I don't check Global, I have a scrambled output. This is another manifestation of a strange memory mapping.

I absolutely need a one sample feedback loop, is it possible to do it?
Are there limitation with the MemoryWriter/Sampler technique I should be aware of?

Best from,
Camille

IP: Logged

SSC
Administrator
posted 20 April 2006 11:30         Edit/Delete Message   Reply w/Quote
The problem you are seeing is due to the StepWriter and the Oscilloscope sharing the same memory.

The Sound compiler allows wavetable memory to be reused when the last Sound reading the memory has ended. In this case, the StepWriter's memory has no readers, so the compiler allows the memory to be reused immediately. (This is not really right, since the compiler ought to prevent the memory from being reused until the writer has ended.)

You can tell when this is happening by looking in the Memory Status window (in the lower left corner of the display): "Warning: The wavetable named #wtable is never read after it is written for the last time at 0.0 seconds on processor 3".

You can get around this behavior by adding something that READS "wtable" (for example, you could add a Sample to your signal flow graph that reads "wtable". If you don't want to hear it you can set its output amplitude to zero).

IP: Logged

tuscland
Member
posted 20 April 2006 11:52         Edit/Delete Message   Reply w/Quote
Very interesting!
However there is something that reads wtable!
Is is the waveshaper module.

IP: Logged

SSC
Administrator
posted 20 April 2006 13:11         Edit/Delete Message   Reply w/Quote
We looked at the reduced version that did not have this waveshaper. Adding a Sample that read from wtable got rid of the little sine wave burst that was seen in the oscilloscope display.

IP: Logged

tuscland
Member
posted 20 April 2006 13:17         Edit/Delete Message   Reply w/Quote
Right, I have to try this.
The problem was that the little sine was also there in the expanded version of the sound.

I should check what's written in the Status window.

IP: Logged

SSC
Administrator
posted 20 April 2006 14:37         Edit/Delete Message   Reply w/Quote
The Sound compiler has been changed for the next release: it will reserve the wavetable memory for the duration of the entire Sound being played whenever the wavetable memory is only written and never read. (This should fix the problem you were seeing when playing only part of the Sound structure.)

IP: Logged

tuscland
Member
posted 20 April 2006 16:46         Edit/Delete Message   Reply w/Quote
Yes, now I understand.
That's because I was playing only a part of the sound structure.
Okay!

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