# Mozart/Titan music Line 1

**URL:** <https://in-thread.sonic-pi.net/t/mozart-titan-music-line-1/4737>\
**Category:** Support, Help & Resources\
**Created:** [December 4, 2020, 3:47pm UTC](https://in-thread.sonic-pi.net/t/mozart-titan-music-line-1/4737 "2020-12-04T15:47:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinodv](https://avatars.discourse-cdn.com/v4/letter/v/97f17d/32.png) [@vinodv](https://in-thread.sonic-pi.net/u/vinodv)\
**Post date:** [December 4, 2020, 3:47pm UTC](https://in-thread.sonic-pi.net/t/mozart-titan-music-line-1/4737/1 "2020-12-04T15:47:19Z")

</div>

I am trying to code the Titan music line 1

[LIne 1](https://youtu.be/K14u0XRiRGM?t=23)

The notation is  
B, A# B C#, B C# D#, C# D#, F# E, D# C# B, A# B C#, B C# D#, C# D#, F# E, D# C#

And coded in sonic pi as

> use\_bpm 120  
> #B, A# B C#, B C# D#, C# D#, F# E, D# C# B, A# B C#, B C# D#, C# D#, F# E, D# C#  
> use\_synth:piano
> 
> play :b4  
> sleep 1
> 
> play :as4  
> sleep 0.5  
> play :b4  
> sleep 0.5  
> play :cs4  
> sleep 1

> play :b4  
> sleep 0.5  
> play :cs4  
> sleep 0.5  
> play :ds4  
> sleep 1
> 
> play :cs4  
> sleep 0.5  
> play :ds4  
> sleep 1
> 
> play :fs4  
> sleep 0.5  
> play :e4  
> sleep 1
> 
> play :ds4  
> sleep 0.5  
> play :cs4  
> sleep 0.5  
> play :b4  
> sleep 1
> 
> play :as4  
> sleep 0.5  
> play :b4  
> sleep 0.5  
> play :cs4  
> sleep 1
> 
> play :b4  
> sleep 1  
> play :cs4  
> sleep 0.5  
> play :ds4  
> sleep 1
> 
> play :cs4  
> sleep 0.5  
> play :ds4  
> sleep 1
> 
> play :fs4  
> sleep 0.5  
> play :e4  
> sleep 1
> 
> play :ds4  
> sleep 0.5  
> play :cs4  
> sleep 1

But I am not getting the exact music.  
Where should I change.

---

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [December 4, 2020, 4:52pm UTC](https://in-thread.sonic-pi.net/t/mozart-titan-music-line-1/4737/2 "2020-12-04T16:52:02Z")

</div>

Hi,

Well if you put a `#` at the start of ` A# B C#` etc. it should work. `#` comments the line.  
Does it help ?

---

<div class="post-metadata">

**Author:** ![vinodv](https://avatars.discourse-cdn.com/v4/letter/v/97f17d/32.png) [@vinodv](https://in-thread.sonic-pi.net/u/vinodv)\
**Post date:** [December 5, 2020, 6:22am UTC](https://in-thread.sonic-pi.net/t/mozart-titan-music-line-1/4737/3 "2020-12-05T06:22:31Z")

</div>

I have commented out these lines already. But the Quote option ‘’ in the forum is not taking it.  
Now those lines are removed.

---

<div class="post-metadata">

**Author:** ![ethancrawford](https://avatars.discourse-cdn.com/v4/letter/e/a88e4f/32.png) [@ethancrawford](https://in-thread.sonic-pi.net/u/ethancrawford)\
**Post date:** [December 5, 2020, 6:45am UTC](https://in-thread.sonic-pi.net/t/mozart-titan-music-line-1/4737/4 "2020-12-05T06:45:35Z")

</div>

Hi @vinodv 🙂  
Comments definitely work inside code blocks - you just need to make sure that each code block starts and ends with a line with three backticks ``` on it, and that each `#` is properly enclosed by these.

Anyway, as far as your original question - this is a great exercise for practicing listening skills 😄 notice that in the video you posted, the melody is composed of a single repeating phrase. Both times, the pitch of the melody mostly gets progressively higher as the phrase progresses.  
However, when listening carefully to your code, you’ll notice several notes sound completely out of place compared to the video. This is because _they are in the wrong octave_.  
Have a go at changing these, and the notes that follow them where needed, and as you compare each change with the video, you’ll notice it sounds more and more the same 😄

---

<div class="post-metadata">

**Author:** ![vinodv](https://avatars.discourse-cdn.com/v4/letter/v/97f17d/32.png) [@vinodv](https://in-thread.sonic-pi.net/u/vinodv)\
**Post date:** [December 5, 2020, 7:03am UTC](https://in-thread.sonic-pi.net/t/mozart-titan-music-line-1/4737/5 "2020-12-05T07:03:41Z")

</div>

> [@ethancrawford](#):
>
> However, when listening carefully to your code, you’ll notice several notes sound completely out of place compared to the video. This is because _they are in the wrong octave_ .  
> Have a go at changing these, and the notes that follow them where needed, and as you compare each change with the video, you’ll notice it sounds more and more the same

How can I do that. Is there a good tutorial for this. You mean to say some are not in middle c.

---

<div class="post-metadata">

**Author:** ![ethancrawford](https://avatars.discourse-cdn.com/v4/letter/e/a88e4f/32.png) [@ethancrawford](https://in-thread.sonic-pi.net/u/ethancrawford)\
**Post date:** [December 5, 2020, 7:07am UTC](https://in-thread.sonic-pi.net/t/mozart-titan-music-line-1/4737/6 "2020-12-05T07:07:17Z")

</div>

There is, and correct (in as far as the C is the beginning of the notes in the wrong octave).  
See Tutorial chapter 2.1 in the help section of the app - or [https://sonic-pi.net/tutorial#section-2-1](https://sonic-pi.net/tutorial#section-2-1), for a good introduction to synths, notes and melodies 🙂  
Let us know if you have any further questions after that 😄

---

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [December 5, 2020, 8:33am UTC](https://in-thread.sonic-pi.net/t/mozart-titan-music-line-1/4737/7 "2020-12-05T08:33:43Z")

</div>

Hi @vinodv

To set the pitch of a note you have to add a number after the english note name.  
Note that sonic pi understands `:c` as `:C4`  
the octave number changes at the c note.

```ruby
play :b3 the b from the 3rd octave is higher than the c3
sleep 1
play :c3 # the c from the 3rd octave
sleep 4

play :b3 # the b from the 3rd octave is lower than the c4
sleep 1
play :c4
sleep 1

```

is it ok ?
