Description:
For the first version of Dynamic Landscapes, I plan to simply have the musician be able to move about the virtual space with their voice. Controls consist of:
- Long note: move forward for the duration of the note
- 2 short notes: rotate the direction of the player dependent on the width of the interval
- Dynamics: louder notes will result in faster movements, quieter making them slower
Code Structure:
Scripts:
- Player_Move
- Set_Speed(int)
- set up the speed
- Move_Forward()
- Rotate(int)
- Voice_Input
- Read_Volume()
- Read the volume of the input and alter the player speed in Player_Move
- Interpret_Input()
- Read input length and pitch to be able to move player
- Move_Player()
- Use Interpreted data to move player accordingly
- Game_Manager
- Start_Game()
- reset all variables and player position to start game
- Stop_Game()
- exit playing start
Objectives for coding:
- Set up simple landscape using unity shapes
- Move character round space using keyboard
- Read microphone input
- Recognize long notes and short notes
- Move forward with long notes
- Link speed to dynamics
- Rotate with short note
- Change degree of rotation based on interval
- Create a more interesting landscape
Websites that seem helpful for coding:
Recognising words in unity: https://learn.microsoft.com/en-us/windows/mixed-reality/develop/unity/voice-input-in-unity
Vocal input unity: https://forum.unity.com/threads/detecting-musical-notes-from-vocal-input.316698/
Audio Spectrum Tutorial: