Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
fabricademy2017:students:anamaria.martinlopez:project_5 [2018/06/27 09:25]
anamaria.martinlopez [Files]
fabricademy2017:students:anamaria.martinlopez:project_5 [2018/06/27 09:29] (current)
anamaria.martinlopez
Line 43: Line 43:
  
 In mBlock the creation of music is simple, we can create it with the block “play tone” we will be able to select a note in Anglo-Saxon notation of the five scales of a piano. On the other hand we will be able to establish the duration of the note. In mBlock the creation of music is simple, we can create it with the block “play tone” we will be able to select a note in Anglo-Saxon notation of the five scales of a piano. On the other hand we will be able to establish the duration of the note.
 +
 +{{  :​fabricademy2017:​students:​anamaria.martinlopez:​proyecto_final:​notas.png?​nolink&​794x341 ​ }}
  
 {{  http://​anakaze.com/​wp-content/​uploads/​2018/​03/​notas.png?​nolink&​794x341 ​ }} {{  http://​anakaze.com/​wp-content/​uploads/​2018/​03/​notas.png?​nolink&​794x341 ​ }}
  
 In this part we will put the duration of the note. Ask for help from a friend who practices music and experiences,​ it’s very easy. In this part we will put the duration of the note. Ask for help from a friend who practices music and experiences,​ it’s very easy.
 +
 +{{  :​fabricademy2017:​students:​anamaria.martinlopez:​proyecto_final:​duracia_n_de_la_nota.png?​nolink&​794x371 ​ }}
  
 {{  http://​anakaze.com/​wp-content/​uploads/​2018/​03/​duración-de-la-nota.png?​nolink&​794x371 ​ }} {{  http://​anakaze.com/​wp-content/​uploads/​2018/​03/​duración-de-la-nota.png?​nolink&​794x371 ​ }}
Line 67: Line 71:
  
 <​code>​ <​code>​
-\\ + 
-pinMode(5,​OUTPUT);​\\+pinMode(5,​OUTPUT);​
 </​code>​ </​code>​
  
-\\+
 } }
  
Line 77: Line 81:
  
 <​code>​ <​code>​
-pinMode(5,​HIGH);​\\ +pinMode(5,​HIGH);​ 
-tone(5,​262,​500);​ // write to buzzer\+tone(5,​262,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​262,​500);​ // write to buzzer\+tone(5,​262,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​392,​500);​ // write to buzzer\+tone(5,​392,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​392,​500);​ // write to buzzer\+tone(5,​392,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​440,​500);​ // write to buzzer\+tone(5,​440,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​440,​500);​ // write to buzzer\+tone(5,​440,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​392,​1000);​ // write to buzzer\+tone(5,​392,​1000);​ // write to buzzer\ 
-delay(1000);​\\ +delay(1000);​ 
-tone(5,​349,​500);​ // write to buzzer\+tone(5,​349,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​349,​500);​ // write to buzzer\+tone(5,​349,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​330,​500);​ // write to buzzer\+tone(5,​330,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​330,​500);​ // write to buzzer\+tone(5,​330,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​294,​500);​ // write to buzzer\+tone(5,​294,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​294,​500);​ // write to buzzer\+tone(5,​294,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​262,​1000);​ // write to buzzer\+tone(5,​262,​1000);​ // write to buzzer\ 
-delay(1000);​\\ +delay(1000);​ 
-tone(5,​392,​500);​ // write to buzzer\+tone(5,​392,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​392,​500);​ // write to buzzer\+tone(5,​392,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​349,​500);​ // write to buzzer\+tone(5,​349,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​349,​500);​ // write to buzzer\+tone(5,​349,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​330,​500);​ // write to buzzer\+tone(5,​330,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​330,​500);​ // write to buzzer\+tone(5,​330,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​294,​1000);​ // write to buzzer\+tone(5,​294,​1000);​ // write to buzzer\ 
-delay(1000);​\\ +delay(1000);​ 
-tone(5,​392,​500);​ // write to buzzer\+tone(5,​392,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​392,​500);​ // write to buzzer\+tone(5,​392,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​349,​500);​ // write to buzzer\+tone(5,​349,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​349,​500);​ // write to buzzer\+tone(5,​349,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​330,​500);​ // write to buzzer\+tone(5,​330,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​330,​500);​ // write to buzzer\+tone(5,​330,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​294,​1000);​ // write to buzzer\+tone(5,​294,​1000);​ // write to buzzer\ 
-delay(1000);​\\ +delay(1000);​ 
-tone(5,​262,​500);​ // write to buzzer\+tone(5,​262,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​262,​500);​ // write to buzzer\+tone(5,​262,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​392,​500);​ // write to buzzer\+tone(5,​392,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​392,​500);​ // write to buzzer\+tone(5,​392,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​440,​500);​ // write to buzzer\+tone(5,​440,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​440,​500);​ // write to buzzer\+tone(5,​440,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​392,​1000);​ // write to buzzer\+tone(5,​392,​1000);​ // write to buzzer\ 
-delay(1000);​\\ +delay(1000);​ 
-tone(5,​349,​500);​ // write to buzzer\+tone(5,​349,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​349,​500);​ // write to buzzer\+tone(5,​349,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​330,​500);​ // write to buzzer\+tone(5,​330,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​330,​500);​ // write to buzzer\+tone(5,​330,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​294,​500);​ // write to buzzer\+tone(5,​294,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​294,​500);​ // write to buzzer\+tone(5,​294,​500);​ // write to buzzer\ 
-delay(500);\\ +delay(500);​ 
-tone(5,​262,​1000);​ // write to buzzer\\+tone(5,​262,​1000);​ // write to buzzer\
 delay(1000);​ delay(1000);​
  
-_loop();\\+_loop();
 </​code>​ </​code>​
  
Line 171: Line 175:
  
 <​code>​ <​code>​
-long endTime = millis() + seconds * 1000;\\ +long endTime = millis() + seconds * 1000; 
-while(millis() <​endTime)_loop();​\\+while(millis() <​endTime)_loop();​
 </​code>​ </​code>​
  
-\\+
 } }
  
Line 181: Line 185:
  
 <​code>​ <​code>​
-\\+
 </​code>​ </​code>​
  
 } }
  
-Back http://​wiki.textile-academy.org/​fabricademy2017/​students/​anamaria.martinlopez/​final_project+Back [[http://​wiki.textile-academy.org/​fabricademy2017/​students/​anamaria.martinlopez/​final_project|http://​wiki.textile-academy.org/​fabricademy2017/​students/​anamaria.martinlopez/​final_project]]