electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » Supercollider
strange periodical distortion when recording sound
Post new topic   Reply to topic Moderators: v-un-v
Page 1 of 1 [1 Post]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
namor



Joined: Mar 31, 2016
Posts: 1
Location: zurich

PostPosted: Thu Mar 31, 2016 8:24 am    Post subject: strange periodical distortion when recording sound
Subject description: 36 sinus oscillators in d-dur
Reply with quote  Mark this post and the followings unread

dear everybody

we're experiencing strange sound recordings with the code below (something seams to produce interference and it's not coming from the data behind as it happens also with simple 1, 0, 0, 1, 0, 0 ... files:

ist there any known issue with 36 parallel sinus oscillators?

https://drive.google.com/file/d/0B0iLw9bRs9SGZk5waDg1MnFYSW8/view?usp=sharing

(
{
s.bootSync;
s.waitForBoot({
"SERVER HAS BOOTED.".postln();

SynthDef(\blauton, {
var freqs = NamedControl.kr(\freqs, #[220, 440, 880, 220, 440, 880, 220, 440, 880, 220, 440, 880, 220, 440, 880, 220, 440, 880, 220, 440, 880, 220, 440, 880, 220, 440, 880, 220, 440, 880, 220, 440, 880, 220, 440, 880]);
var amps = NamedControl.kr(\amps, #[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]);
var phases = NamedControl.kr(\phases, #[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]);
var sig;
sig = DynKlang.ar(`[freqs, amps, phases]);
Out.ar([0,1], sig);
}).add;


~root = 38;
~scale = Scale.major(\just);
~freqs = 36.collect({arg d; ~scale.degreeToFreq(d, ~root.midicps, 0)});
~freqs.postln;

y = Synth(\blauton);
y.set(\freqs, ~freqs);

s.prepareForRecord(thisProcess.nowExecutingPath.dirname +/+ ("recordings/" "REC_0007_GBR_e2_mbp" ".aiff"));
s.record();

~data = thisProcess.nowExecutingPath.dirname +/+ "/" "REC_0007_1x12_5000/" "data.sc";
~data.postln;
f = CSVFileReader.read(~data, true, true);
f[0].postln;

t = Task {
f.size.do { arg i;
var e = f[i].asFloat;
e = e.lincurve(0.0, 1.0, 0.0, 1.0, 2.0);
e = e / 36;
y.set(\amps, e);
0.04.wait; // 25 Hz
//(i % 615 + " amps "+e).postln;
};
"DONE.".postln();
s.stopRecording;
}.play;
})
}.fork;
)

Server.killAll
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: v-un-v
Page 1 of 1 [1 Post]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Supercollider
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use