You can also make a connection between sound files located in the main memory and those located on the hard disk in array. This is achieved with the "soundfiler" object. This object allows you to load a sound file stored on the hard disk into an array, or to save the contents of an array on the hard disk as a sound file. The command "read" is used to load a sound file. The arguments for the command are the name of the file (with the path if necessary) and then the name of the array to which you want to write.

너는 또한 메인 메모리에 위치한 사운드 파일과 어레이에서 하드디스크에 위치한 것사이에 연결을 만들 수 있다. 이것은 soundfiler오브제를 통해 가능한데, 그 오브젝트는 하드디스크에 저장되어 있는 사운드 파일을 어레이로 불러오게 하거나, 어레이의 내용물을 하드디스크에 사운드파일로서 저장할 수 있게 한다. 이 명령어 read는 보통 사운드 파일을 불러올때 사용된다. 변수는 사운드 파일이름(혹은 패쓰를 포함한) 과 저장하길 원하는 어레이의 이름이 변수다.

patches/3-4-1-1-2-load-soundfile.pd

Once the file has successfully loaded, the size of the sound file in samples will be sent out the "soundfiler" object's outlet.

You can also include other commands (called "flags") in the message:

파일이 성공적으로 로딩되면, 샘플 사운드 파일의 사이즈가 soundfiler오브젝트의 아웃렛으로 보내어진다. 너는 또한 메세지에 flags라고 불리어지는 다른 명령을 포함시킬수도 있다.

The resize command changes the array's size to match that of the sample (this is limited to 4000000 samples - about 90 seconds, though this can be changed with "maxsize").

리사이즈는 샘플의 길이와 맞추어서 어레이의 사이즈를 변화시키는 명령이다. 그것은 4000000샘플들까지 가능하고, 약 90초 정도 . 만약 최고 사이즈로 로딩하고 싶으면, -resize말고 - -maxsize라고 써넣으면된다.

Conversely, the command "write" saves the contents of an array as a sound file to the hard disk. In this case, the format (WAV or AIFF) must be given as a flag, then the name (with path designation if necessary) of the file you want to create, and then the name of the array.

반대로 wrtie명령은 어레이에 있는 내용물을 하드디스크에 사운드파일로 저장한다. 이런 경우 wav파일 이나 aiff형식으로 저장되는데, flag(메세지안에 명령)가 주어져야만한다. 너가 만들길 원하는 파일이름(지정 패쓰가 있으면 넣어주고), 그런다음 어레이

Other important "flags" in this context are:

  • normalize: Optimizes a file's amplitude levels, as explained previously.

  • rate: Used to set the sample rate for a file.

As an alternative to array, you could also use "table". Create a "table" object; enter the name for the first argument and the size in samples for the second. This will create an array in a subpatch (click on the object in execute mode) that is treated like a normal array. This approach has the following advantage: the graphics for a normal array can be very complex. You can notice this when you move a big array around on the canvas: it moves very slowly. But if the graphic representation of an array is in a subpatch, the object itself can be moved much more easily.

다른 중요한 flag(메세지속 명령)는

노말라이즈(파일의 증폭레벨을 최적화)와 레이트(파일의 샘플레이트를 세팅하는)

하나의 대안적 어레이로, 너는 테이블을 사용할 수 있다. 테이블 오브젝트를 만들고, 처음 변수로 이름을 넣고, 두번째로 샘플들에서 사이즈를 넣고. 이것은 서브패치에서 어레이를 만들수 있다. (실행모드에서 오브젝트를 클릭하면) 그 어레이는 보통 어레이들과 똑같이 사용할수 있다. 이런 접근은 좋은 범이 있는데, 정상인 어레이를 위한 그래픽이 복잡할 수 있다. 너가 캔버스 주변으로 큰어레이로 옮길때 너는 이것을 주의할 수 있다. 그것이 정말 옮겨지는데 오래걸린다. 그러나 어레이의 그래픽적 재현이 서브패치에서 이루어진다면, 이 오브젝트는 아주 쉽게 옮겨질수 있다.


results matching ""

    No results matching ""