Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Altering the samples, possible?  (Read 2708 times)

0 Members and 1 Guest are viewing this topic.

Grimlen

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • Email
Altering the samples, possible?
« on: November 12, 2013, 08:38:18 am »
Is it at all possible to alter the samples found in a buffer/sound file?

For example.
Let's say I make an audio editor.
In this editor I can display a sound via its samples on a grid/graph.

In this graph, I can drag my mouse over samples, cut them out, and paste them at
a different location.

So if I were to record myself saying:
"Hello World!"

And I cut the samples where I started saying: "World!", and pasted it before "Hello", I would get back:
"World! Hello"

But how would I do this via the buffer?
This is simple enough how to do it with just an array and display it back to the graph, but
what if I wanted to save the newly organized samples to a file, I would need to somehow
modify the buffer.

How would I do this?

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Altering the samples, possible?
« Reply #1 on: November 12, 2013, 08:49:06 am »
Use loadFromSamples to update the buffer with your new samples then saveToFile, nop?

 

anything