28. ListPatterns

ListPatterns

ListPattern은 여러 방법으로 오브젝트의 array를 반복해서 실행하는 방법이다. 모든 ListPatterns은 공통적으로 instance variables list and repeats를 가진다. List variable 은 array로 구성되어 반복적으로 실행되어질 값들이며, repeats variable은 얼마만큼 실행할것인지를 지정해준다. default repetition은 1이다.

대표적인 예로 Pseq가 있다.

(
var a, b;
a = Pseq.new(#[1, 2, 3], 2); // 1, 2, 3을 2번 반복.
b = a.asStream;//stream으로 만들어 줍니다. 
7.do({ b.next.postln; });
)

위를 실행해보면, 총 7번 실행해야 하는데 stream은 6개의 값(1,2,3,1,2,3)만 가지고 있어서 마지막 값은 nil이 나오고 7을 출력해주는데, 그 7은 stream에 있는 수가 아닌 do의 실행횟수를 의미합니다. 

(
var a, b;
a = Pseq.new(#[1, 2, 3, 4], 3, 2); // repeat 3, offset 2, 실행시켜보면 3부터 읽기 시작합니다.
b = a.asStream;
13.do({ b.next.postln; });
)

Pseq을 pitch 값으로 사용해 봅니다. 

(
s = Server.internal;
SynthDef( “Help-SPE3-SimpleSine”, {
 arg freq, sustain=1.0;
 var osc;
 osc = SinOsc.ar( [freq,freq+0.05.rand] ) * EnvGen.ar( 
  Env.perc, doneAction: 2, levelScale: 0.3, timeScale: sustain
 );
 Out.ar(0,osc);
}).send(s);
)

(
var a, d;
a = Pseq(#[60, 61, 63, 65, 67, 63], inf ).asStream.midicps;//숫자들을 midi값으로 지정해주고
d = 0.3;
Task({
 12.do({
  Synth(“Help-SPE3-SimpleSine”, [ freq, a.next, sustain, d ]);
  d.wait;
 });
}).play
)
Pser는 list의 수를 순서대로 주어진 수 만큼 출력한다. 
(
var a, b;
a = Pser.new(#[1, 2, 3], 5); // return 5 items
b = a.asStream;
6.do({ b.next.postln; });
)
Prand는 주어진 수를 random으로 추출하여 두번째 argument에 주어진 수 만큼 출력한다.
(
var a, b;
a = Prand.new(#[1, 2, 3, 4, 5], 6); // return 6 items
b = a.asStream;
7.do({ b.next.postln; });
)
(
var a, d;
a = Prand(#[60, 61, 63, 65], inf).midicps.asStream;//inf라고 되어있는것은 무한대로 추출한다는 뜻. 값의 중복도 일어남.
d = 0.3;
Task({
 12.do({
  Synth(“Help-SPE3-SimpleSine”,[freq, a.next]);
  d.wait;
 });
}).play;
)
Pxrand 는 Prand와 비슷하지만, Prand 에서 처럼 이웃하는 값이 중복값으로 주어지지 않는다. 
(
var a, b;
a = Pxrand.new(#[1, 2, 3], 10); // return 10 items
b = a.asStream;
11.do({ b.next.postln; });
)
Psuf는 Pser와 값으나 그 값이 scramble 된다. 그러나 이와 Pxrand 와 다른점은 list가 단 한번 scramble된 후, 그것을 반복한다.
(
var a, b;
a = Pshuf.new(#[1, 2, 3, 4], 3);
b = a.asStream;
13.do({ b.next.postln; });
)
(
var a, b;
a = Pshuf(#[60, 61, 65, 67], inf).midicps.asStream;
Task({
 12.do({
  Synth(“Help-SPE3-SimpleSine”,[freq, a.next]);
  0.5.wait;
 });
}).play;
)

Nesting Patterns

Pattern을 Pattern내부에 사용하여 Stream을 만들수 있다.
(
var a, b;
a = Pseq.new([1, Pseq.new([100,200], 2), 3], 3); 
b = a.asStream;
19.do({ b.next.postln; });
)
(
var a, b;
a = Prand.new([
  Pseq.new([1, 2], 2), 
  Pseq.new([3, 4], 2), 
  Pseq.new([5, 6], 2)
 ], 3); 
b = a.asStream;
13.do({ b.next.postln; });
)
//Pitch변화를 위한 Sequence. 
(
var a;
a = Prand([
  Pseq(#[60, 61, 63, 65, 67, 63]),
  Prand(#[72, 73, 75, 77, 79], 6),
  Pshuf(#[48, 53, 55, 58], 2)
 ], inf 
).midicps.asStream;
Task({
 loop({
  Synth( “Help-SPE3-SimpleSine”, [freq, a.next.postln] );
  0.3.wait;
 });
}).play;
)
(
var a;
a = Pseq(#[60, 62, 63, 65, 67, 63], inf) + Pseq(#[0, 0, 0, 0, -12], inf);
a = a.asStream.midicps;
Task({
 25.do({
  Synth(“Help-SPE3-SimpleSine”,[freq, a.next]);
  0.3.wait;
 });
}).play;
)




27. Environment

Environments 와 Events는 patterns을 위한 상징적인 event framework를 세우기 위해 사용되며, pattern을 사용한 composition을 컨트롤 하도록 한다. 

-Environment

Environment 는 IdentityDictionary으로 symbol들을 value들로 맵핑한다. 
언제나 하나의 current Environment가 존재하여 class Object의 currentEnvironment class variable에 저장된다.

Symbol 과 value는 다음과 같이 하나의 짝으로 current Environment에 저장된다.:

currentEnvironment.put(myvariable, 999);

다시 symbol에 저장된 값을 보고 싶다면 다음과 같이 출력한다.

currentEnvironment.at(myvariable).postln;

맨위에 있는 것을 다음과 같이 간단하게 쓸 수 있다. :

~myvariable = 888;

또한 값을 확인하려면:

~myvariable.postln;


-Environment 만들기

Environment는 class method “make”로 만들어 진다. 그리고 그 안에 값을 저장한다. 
make가 하는일은 일시적으로 current Environment에 새로운 값을 할당하는 일이다. 

(
var a;
a = Environment.make({
 ~a = 100;
 ~b = 200;
 ~c = 300;
});
a.postln;
)

-Environment 사용하기 

instance method “use” 는 currentEnvironment의 값을 사용하도록 한다.

(
var a;
a = Environment.make({
 ~a = 10;
 ~b = 200;
 ~c = 3000;
});
a.use({
 ~a + ~b + ~c
}).postln;
)

There is also a use class method for when you want to make and use the result from an Environment directly.

(
var a;
a = Environment.use({
 ~a = 10;
 ~b = 200;
 ~c = 3000;
 ~a + ~b + ~c
}).postln;
)

-current Environment로부터 arguments와 함께 Function불러내기

아래 예제를 보면, x, y, z를 가진 function f 를 생성하여, 그 값을 .valueEnvir(또는 valueArrayEnvir)를 통해서 지정해준다. 여기서 지정되지 않은 값은 .use에 있는 값으로 사용된다. 

(
var f;

//function
f = { arg x, y, z; [x, y, z].postln; };

Environment.use({
 ~x = 7;
 ~y = 8;
 ~z = 9;
 
 f.valueEnvir(1, 2, 3); // 모든 값이 설정됨
 f.valueEnvir(1, 2); // z 는 current Environment lookup에서
 f.valueEnvir(1); // 
 f.valueEnvir; // 
 f.valueEnvir(z: 1); // 
});
)

다음은 SynthDefs와 함께 Environment를 사용할 수 있는 예제를 보자.
아래와 같이 3개의 function들이 각각 freq, amp 와 pan 의 argument들이 서로 다른 순서로 설정되었으나, 그것과 상관없이 valueEnvir 가 environment에서 각각의 값을 불러낼 수 있다.

(
var a, b, c, n;

n = 40;
a = { arg freq, amp, pan;
 Pan2.ar(SinOsc.ar(freq), pan, amp);
};
b = { arg amp, pan, freq;
 Pan2.ar(RLPF.ar(Saw.ar(freq), freq * 6, 0.1), pan, amp);
};
c = { arg pan, freq, amp;
 Pan2.ar(Resonz.ar(GrayNoise.ar, freq * 2, 0.1), pan, amp * 2);
};

Task({
 n.do({ arg i;
  SynthDef(“Help-SPE4-EnvirDef-” ++ i.asString, {//n개 만큼의 SynthDef가 만들어 지려면 그 각각 이름에 다른 번호가 매겨지도록 사용된 것이 ++i.asString이다. 
  var out;
  Environment.use({
  //environment에 값을 지정해준다.
  ~freq = exprand(80, 600);
  ~amp = 0.1 + 0.3.rand;
  ~pan = 1.0.rand2;
   
  // 다음은 random으로 instrument function을 그 value와 함께 고르도록 한다.
  out = [a,b,c].choose.valueEnvir;
  });
  out = CombC.ar(out, 0.2, 0.2, 3, 1, out);
  out = out * EnvGen.kr( 
  Env.sine, doneAction: 2, timeScale: 1.0 + 6.0.rand, levelScale: 0.3 
  );
  Out.ar( 0, out );
  }).send(s);//서버에 보내는것을 잊지 말아야.
  0.02.wait;//task에 사용될 시간 지정
 });
 loop({
  Synth( “Help-SPE4-EnvirDef-” ++ n.rand.asString .postln);//random으로 synthdef를 뽑도록 해준다. 
  (0.5 + 2.0.rand).wait;//여기서 바로 synth를 불러준다. 
 });
}).play;
)


MISO MUSIC PORTUGAL


10th INTERNATIONAL ELECTROACOUSTIC COMPOSITION COMPETITION 2009
http://www.misomusic.com/ingl/crea/comcomp/2009.html

In order to encourage the creation of electroacoustic music, Miso Music Portugal is organising the 10th International Electroacoustic Composition Competition Música Viva 2009. The works submitted must all be recorded electroacoustic pieces, composed in studio, sound projected by loudspeakers in concert with the use of no live sound sources.

For composers of any nationality, aged no more than 35 years-old on 31/12/2009.

Deadline for submissions 30th June 2009.


“SOUND WALK” CALL FOR ELECTROACOUSTIC MINIATURES – MÚSICA VIVA FESTIVAL 2009
http://www.misomusic.com/ingl/crea/comcomp/2009.html

Miso Music Portugal and the Música Viva Festival 2009 calls the composers to send electroacoustic miniatures to be diffused at the “Sound Walk” sound installation during the Música Viva Festival’s 15th edition, taking place in Lisbon from September 12th to 20th at the Belém Arts Centre, the Calouste Gulbenkian Foundation and the Jerónimos Monastery.

The “Sound Walk” is an outdoor stereo installation placed along the 100 meters walkway that leads to the main entrances of the Belém Arts Centre’s concert halls. Several loudspeakers will be displayed on each side of this walkway and the “Sound Walk” will be running daily during the festival from 10:00 A.M. to 0:00 A.M.

Deadline for submissions is 31st May 2009.


LAB FOR ELECTROACOUSTIC CREATION (LEC)
http://www.misomusic.com/ingl/crea/elecres.html

Duarte Dinis Silva will be the resident composer at the LEC from March to April 2009.

Continuing its policy of promoting and encouraging music creation, Miso Music Portugal has created in 2005 a program of artistic residencies in the recently created LEC (Lab for Electroacoustic Creation) in order to stimulate electroacoustic creation. This program provides technical and human support and at the same time establishes partnerships with several foreign studios which enables creation residencies abroad.
Vacancies open for the LEC residencies for the 2009’s second semester.


2nd SOND’AR-TE COMPOSITION COMPETITION 2009 – CHAMBER MUSIC WITH ELECTRONICS
http://www.misomusic.com/ingl/crea/comcomp/2009.html

In order to encourage the composition of chamber music with electronics, Miso Music Portugal and the Sond’Ar-te Electric Ensemble are organising the “2nd Sond’Ar-te Composition Competition 2009 – Chamber Music with Electronics”.

This competition is open to composers of any nationality, without any age limit, each of whom may submit only one work composed in 2000 or after and which must not have been commercially published or awarded a prize in any national or international competition. The jury members for this year’s competition are composers: Jonathan Harvey, Philippe Leroux, Pedro Amaral and Miguel Azguime. Deadline for submissions is 30th April 2009


PORTUGUESE MUSIC INFORMATION CENTRE
http://www.mic.pt

Agreement with Camões Institute
The PMIC and the Camões Institute have established an agreement in order to alow for 178 of PMIC’s published scores to be available online at the Camões Digital Library. This new on-line library will be launched on January 22nd.

Scores Edition and Distribution on-line
The on-line scores’ edition and distribution by the Portuguese Music Information Centre continues in a fast growing pace. This public service project offers the on-line free edition of scores by Portuguese composers from the XX and XXI Centuries for download, thus hoping to assure the circulation of Portuguese works on a global scale. There are now 249 scores available on-line. Since last September four other composers have joined this project: Christopher Bochmann, Sara Carvalho, Fernando Corrêa de Oliveira and Clotilde Rosa. At the present moment the PMIC publishes the works of 40 composers already.

Creation of the PMIC Scientific Council
The Portuguese Music Information Centre Scientific Council had its first meeting on December 14th and will be composed of:

– Paula de Castro Guimarães, Coordinator of the Scientific Council,
President of Miso Music Portugal and founder of the PMIC;
– Doutor Paulo Ferreira-Lopes, Portuguese Catholic University – School of Arts, CITAR;
– Doutor Tomás Henriques, New University of Lisbon – Faculty of Social and Human Sciences, Musicology Department, CESEM;
– Doutor Pedro Rebelo, Queen’s University (Belfast) – Sonic Arts Research Centre;
– Doutor António de Sousa Dias, Portuguese Catholic University – School of Arts, CITAR;
– Doutora Isabel Soveral, University of Aveiro – Department of Comunication and Art – UnlMeM;
– Miguel Azguime, composer and founder of the PMIC.


MISO ENSEMBLE
http://www.misoensemble.com

PERFORMANCES

SALT ITINERARY
January 16th 2009 | 9:30 P.M.
Institut Franco-Portugais, Lisbon
This Performance is part of the celebration of the Art’s Birthday 2009 by EBU
In collaboration with RTP Antena 2
Live broadcast by the European Broadcasting Union

February 4th 2009 | 7:00 P.M.
De Montfort University, PACE Building, STUDIO 1, Richmond St.,
Leicester – UK

February 28th 2009 | 4h00 P.M.
Peninsula Arts Contemporary Music Festival 2009
200 Years of Darwin
University of Plymouth, Jill Craigie Cinema – Roland Levinsky
Building, University of Plymouth, Plymouth, UK
SOND’AR-TE ELECTRIC ENSEMBLE
http://www.sondarte.com

Readings: CALL for Works’ readings

With this project, the Sond’Ar-te Electric Ensemble looks forward to promote the development of music writing for its basic ensemble formation, which is flute, clarinet, violin, cello, piano and electronics, as well as offering an experimental lab for composers. This is also meant to provide for a first encounter between composers and the Sond’Ar-te Electric Ensemble and a way for them to meet, musically speaking.

The presented score may be just a small fragment of a piece, but it must include the parts for each of the instruments. All of the 5 instruments which complete the basic formation of the ensemble must be part of the piece, except for the electronics which is optional in this context since the time available for rehearsal (45 min.) will not be enough for the use of it.

Composers are requested to be present for the readings rehearsal. Next readings rehearsal: 12th June 2009 at Centro Cultural de Cascais.

CONCERTS
March 6th – 9:30 P.M.
Soloists from Sond’Ar-te Electric Ensemble: Clarinet and Electronics
Nuno Pinto: clarinet
Miso Music Portugal Season – Instituto Franco Português, Lisbon

May 8th – 9:30 P.M.
Soloists from Sond’Ar-te Electric Ensemble: Piano and Electronics
Ana Telles. piano
Miso Music Portugal Season – Instituto Franco Português, Lisbon

May 16th – 6:30 P.M.
Sond’Ar-te Electric Ensemble concert in collaboration with the Ensemble Aleph
Théâtre Dunois – Paris

May 17th – 4:00 P.M.
Sond’Ar-te Electric Ensemble concert in collaboration with the Ensemble Aleph
Théâtre Dunois – Paris

June 12th
Readings Open Rehearsal Sond’Ar-te Electric Ensemble as a resident ensemble of the Municipality of Cascais
Centro Cultural de Cascais

June 13th
Sond’Ar-te Electric Ensemble concert as a resident ensemble of the Municipality of Cascais
Centro Cultural de Cascais

September 13th – 9:00 P.M.
Sond’Ar-te Electric Ensemble concert
Música Viva Festival 2009 – Centro Cultural de Belém/ Belém Arts Centre

September 18th – 9:00 P.M.
Sond’Ar-te Electric Ensemble concert in collaboration with the Ensemble Aleph
Música Viva Festival 2009 – Centro Cultural de Belém/ Belém Arts Centre

November 18th
Sond’Ar-te Electric Ensemble concert
Guggenheim Museum – Bilbao

December 11th
Readings Open Rehearsal with Sond’Ar-te Electric Ensemble as a resident ensemble of the Municipality of Cascais
Centro Cultural de Cascais

December 12th
Sond’Ar-te Electric Ensemble concert as a resident ensemble of the Municipality of Cascais
Centro Cultural de Cascais
ISCM’s Portuguese Section
International Society for Contemporary Music
http://www.misomusic.com/ingl/internatio/iscmi/ps.html

Composer Pedro M. Rocha’s piece “To a world free from beliefs” was the chosen piece by the Flemish Section of the ISCM to be performed representing Portugal in a concert with pieces exclusively from other ISCM’s sections, taking place next April in Gent.


15th MÚSICA VIVA FESTIVAL
http://www.misomusic.com/ingl/circul/mviva/2009.html

September 12th to 20th
At the Belém Arts Centre, the Calouste Gulbenkian Foundation and the Jerónimos Monastery in Lisbon.
Program to be announced soon.
ECPNM / MISO MUSIC PORTUGAL
http://www.misomusic.com/ingl/internatio/ecpnmi.html

Miso Music Portugal is co-organizer of the ECPNM 2nd European competition for live-electronic music projects.
Competition for the composition and interpretation of live-electronic music projects.
The competition is open only to composers with a European citizenship or composers and interpreters living in Europe since at least 10 years.
The maximum age of the composer is 40 years


MISO MUSIC PORTUGAL SEASON
At the Instituto Franco-Português (Institut Franco-Portugais)
http://www.misomusic.com/ingl/circul/season.html

Phillippe Friedman Auditorium – Instituto Franco-Português
Address: Avenida Luís Bívar, 91 / 1050-143 Lisboa

January 2009
CONCERT
January 16th – 9:30 pm – Philippe Friedman Auditorium
Salt Itinerary
Miso Ensemble
Multimedia Opera
On stage, live, the performer/ author brings to life new paths in electronic music; sound, light, images and movement as if drawn, painted or sculpted defy in a truly powerful, deep and thrilling way all the rules and limits between Music, Theatre and Opera.

Miguel Azguime – composition; texts/ poems; performer
Paula Azguime & Miguel Azguime – concept, staging & dramaturgy
Paula Azguime & Perseu Mandillo – video
Paula Azguime – sound projection and live electronics
André Bartetzki – video programming
Perseu Mandillo – live video

Funding and Support: Ministério da Cultura/ Direcção-Geral das Artes
DAAD Berliner Künstlerprogramm & TU-Studio Technische Universität Berlin

Tickets: 7 EUR ; 5 EUR (for under 30 years-old)

CONCERT
January 17th – 9:30 pm – Philippe Friedman Auditorium
Electronic Music with the Loudspeaker Orchestra – works from ESMAE and ESART students
Concert featuting works from students from the Composition Course at ESMAE (Porto) and from the Electronic Music and Music Production at ESART (Castelo Branco). These works will present different displays of electronic music as having its unique identity, with its own language and which has been growing through the past 60 years, also interacting with acoustic live music and video.

January 14th and 15th – 10:00 am, 11:30 am and 3:00 pm – Philippe Friedman Auditorium
Contos Contados com Som / Teatro Electroacústico
Stories with sounds for children from 4 to 12 years-old

Paula Azguime – concept
Ágata Mandillo – selection, text adaptation, speaker
Ana Mandillo – speaker
Rosinda Costa – speaker
Simão Costa – musical assistant
Miso Studio – electronics

Uma Mesa é uma Mesa. Será?
music by José Luís Ferreira / story by Isabel Martins
(commissioned by Miso Music Portugal)

A menina dos olhos de chuva
music by de Ângela Lopes / story by Anne Lauricella
(commissioned by Miso Music Portugal)

A Velha e o Ladrão
music by Sérgio Pelágio / story by António Torrado
(commissioned by Miso Music Portugal)

Nuno e os Monstros
music by Isabel Soveral / story by Ágata Mandillo
(commissioned by Miso Music Portugal)

Tickets: 5 EUR ; 3 EUR for schools
Reservation is mandatory: +351 214575068 or by email: marta_catana@misomusic.com

MARCH 2009
DANCE
March 7th – 9:30 pm – Philippe Friedman Auditorium
Subterrâneos do Corpo
The body. The image of the body on its own, almost unreal, like a piece of art, an organic mass in a perpetual motion. The different languages of each body.
The way by which a body is able to move with no need for a back-up story. The human body, regardless of gender. Only the body, bare from any artefacts to sustain it.

Ana Martins – choreographer
Catarina Ribeiro – choreographer’s assistant
Francesca Bertozzi, Inês Oliveira Santos – performers
Rita Álvares Pereira – scenographer
Simão Costa – sound
Anatol Waschke – light designer
Eira – executive production
Thanks to: Francisco Medeiros, Hugo Tornelo, José Álvaro Correia
Performance supported by the Programa Gulbenkian Criatividade e Criação Artística/Fundação Calouste Gulbenkian

Tickets: 7 EUR ; 5 EUR (for under 30 years-old)

CONCERT
March 6th – 9:30 pm – Philippe Friedman Auditorium
Sond’Ar-te Electric Ensemble
solo music – clarinet and electronics
Nuno Pinto – clarinet
Miguel Azguime – electronics
Works by Cândido Lima, Carlos Caires, João Pedro Oliveira, Miguel Azguime, Ricardo Ribeiro and Virgílio Melo.
Tickets: 7 EUR ; 5 EUR (for under 30 years-old)

CONCERT
March 4th – 9:30 pm – Auditório Philippe Friedman
Power Trio
Release of the new CD – “Cousas e Lousas”
Ensemble dedicated to composition/performance of contemporary music and also to improvisation. Aware of classical’s music legacy, POWERTRIO uses and subverts contemporary musical archetypes, logic and solutions questioning and seeking integration of crossmedia resources.

Eduardo Raon – harp; electronics
Joana Sá – piano; toy piano
Luís José Martins – classical guitar
http://www.myspace.com/powertrio3
Tickets: 7 EUR ; 5 EUR (for under 30 years-old)

March 4th, 5th and 6th – 10:00 am and 11:30 am – Philippe Friedman Auditorium
Contos Contados com Som / Teatro Electroacústico
Stories with sounds for children from 4 to 12 years-old

Paula Azguime – concept
Ágata Mandillo – selection, text adaptation, speaker
Ana Mandillo – speaker
Rosinda Costa – speaker
Simão Costa – musical assistant
Miso Studio – electronics

Uma Mesa é uma Mesa. Será?
music by José Luís Ferreira / story by Isabel Martins
(commissioned by Miso Music Portugal)

A menina dos olhos de chuva
music by de Ângela Lopes / story by Anne Lauricella
(commissioned by Miso Music Portugal)

A Velha e o Ladrão
music by Sérgio Pelágio / story by António Torrado
(commissioned by Miso Music Portugal)

Nuno e os Monstros
music by Isabel Soveral / story by Ágata Mandillo
(commissioned by Miso Music Portugal)

Tickets: 5 EUR ; 3 EUR for schools
Reservation is mandatory: +351 214575068 or by email: marta_catana@misomusic.com

MISO MUSIC PORTUGAL
Centre for Musical Creation – Portuguese Music Information Centre

www.misomusic.com * www.mic.pt * misomusic@misomusic.com
Rua do Douro 92 * Rebelva * 2775-318 * PAREDE * PORTUGAL *
Tel:+ 351-21.4575068 * Fax: + 351-21.4587256

Estrutura financiada pelo Ministério da Cultura / Direcção Geral das Artes

— 

Communauté électroacoustique canadienne (CEC) Canadian Electroacoustic Community
eContact! 10.4 — Live http://cec.concordia.ca/econtact/10_4 (Oct08)
http://cec.concordia.ca | http://econtact.ca | http://sonus.ca
http://cec.concordia.ca/jttp Project for young/emerging sound artists