Help with MATLAB music code | Signals & Systems

Click For Summary
SUMMARY

The discussion focuses on implementing pulse in a MATLAB music code assignment for a Signals and Systems class. The user is tasked with using three variables: frequency (in note numbers), duration, and pulse, to create music. The pulse variable is intended to represent quiet periods between notes, with specific examples provided to clarify its role in timing and sound production. The conversation also touches on basic music theory concepts such as duple, triple, and quadruple meters, but emphasizes that the primary goal is to play frequencies for specified durations without delving deeply into music theory.

PREREQUISITES
  • Understanding of MATLAB programming
  • Basic knowledge of signal processing concepts
  • Familiarity with music theory, specifically pulse and meter
  • Ability to manipulate arrays in MATLAB
NEXT STEPS
  • Explore MATLAB's sound generation functions
  • Learn about pulse waveforms and their applications in music synthesis
  • Research the relationship between duration and pulse in musical compositions
  • Study MATLAB's array manipulation techniques for timing and sequencing
USEFUL FOR

Students in Signals and Systems courses, MATLAB programmers, and anyone interested in music synthesis and sound design.

physics4353
Messages
5
Reaction score
0
For my signals and system class were creating music. I am given a structure with three variables, frequency/notes, duration, and pulse. ex: frequency(in note numbers which i then convert to frequencies)[44 45 47 50...].
duration[2 1 1 3 4...] with pulse duration being .25s and pulse[1 3 4 5 8 13...]. So basically I am having a hard time with what I am supposed to be doing with pulse. Doesn't duration with the given .25s already basically give me my pulses? The assignment states to incorporate pulse into my function to account for quiet periods which i guess is represented by 12(in the above example) because 8+4=12 and the next pulse starts at 13 in my pulse vector. I really have no clue how I am supposed to account for it. Hope this is stated this clear enough, let me know if I need to add more information.-thanks for any help.
 
Physics news on Phys.org
Is pulse related to loudness and then it dissipates? Like tapping a piano key?
 
jedishrfu said:
Is pulse related to loudness and then it dissipates? Like tapping a piano key?
The pulses represent the start of a pulse wave. Like at pulse one the duration is 2(2 pulses) and since a pulse is .25s is represents 1second playing my first note 44. Then pulse three starts since two pulses already occurred and it has a duration of 1 or .25s and plays note 45.
 
If this is music theory, is http://wmich.edu/mus-gened/mus170/RockElements.pdf the definition of pulse?
Duple meter = 2 pulses per group: 2/4 time
Triple meter = 3 pulses per group: 3/4 time
Quadruple meter = 4 pulses per group: 4/4 time
 
FactChecker said:
If this is music theory, is http://wmich.edu/mus-gened/mus170/RockElements.pdf the definition of pulse?
Duple meter = 2 pulses per group: 2/4 time
Triple meter = 3 pulses per group: 3/4 time
Quadruple meter = 4 pulses per group: 4/4 time
We're not going into music theory, were basically playing one frequency for a period of time and then playing a different frequency for a different period of time. nothing fancy.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
841
Replies
1
Views
4K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 9 ·
Replies
9
Views
5K