/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / How to make a RTTTL data table for BUZZER_PlayMusic(const u8 *melody)?

Username:     
Password:     
             

Forum
  • Index
  •  » circleOS
  •  » How to make a RTTTL data table for BUZZER_PlayMusic(const u8 *melody)?

# 1   2008-06-18 07:38:33 How to make a RTTTL data table for BUZZER_PlayMusic(const u8 *melody)?

gregor
Member
From: Bydgoszcz/POLAND
Registered: 2008-03-12
Posts: 16
Website

How to make a RTTTL data table for BUZZER_PlayMusic(const u8 *melody)?

Here is an ringtone in the RTTTL format: Tetris:d=4,o=5,b=160:e6,8b,8c6,8d6,16e6,16d6,8c6,8b,a,8a,8c6,e6,8d6,8c6,b,8b,8c6,d6,e6,c6,a,2a,8p,d6,8f6,a6,8g6,8f6,e6,8e6,8c6,e6,8d6,8c6,b,8b,8c6,d6,e6,c6,a,a\

How to put the above data into a table of u8 ?
const u8* melody = "    ??? what here ???     ";

Last edited by gregor (2008-06-18 07:39:08)


_if technology is the answer what was the question ?

Offline

 

# 2   2008-06-18 12:22:20 How to make a RTTTL data table for BUZZER_PlayMusic(const u8 *melody)?

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: How to make a RTTTL data table for BUZZER_PlayMusic(const u8 *melody)?

See in the Maze example (pacman):

const u8 *MAZE_Melody = "Maze:d=16,o=6,b=140:"
                              "b5,b,f#,d#,8b,8d#,c,c7,g,f,8c7,8e,b5,b,f#,d#,8b,"
                              "8d#,32d#,32e,f,32f,32f#,g,32g,32g#,a,8b";

Offline

 

  • Index
  •  » circleOS
  •  » How to make a RTTTL data table for BUZZER_PlayMusic(const u8 *melody)?

Board footer