Skip to content

Commit

Permalink
Update pxt.json, music_python_activity1.md, music_python_activity2.md…
Browse files Browse the repository at this point in the history
…, music_python_activity3.md, setdesign_activity.md, setdesign_python_activity2.md
  • Loading branch information
neonerz committed Sep 5, 2024
1 parent e097592 commit d128550
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 4 deletions.
2 changes: 1 addition & 1 deletion music_python_activity1.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ hoc.note(Note.Ti)
```

## Using instruments
We need to unlock the door by playing the correct song. All code needs to start with the ``||hoc:hoc.add_instrument()||`` function. This function sets what instrument will be playing. Then you could define what notes you want to play using the ``||hoc:hoc.note()||`` function.
We need to unlock the door by playing the correct song. All code needs to start with the ``||hoc:hoc.add_instrument()||`` function. This function sets what instrument will be playing. Then you could define what notes you want to play using the ``||hoc:hoc.note()||`` function. See the hint for all available parameters.

#### ~ tutorialhint
First add the ``||agent:Instrument.Guitar||`` by using the ``||hoc:hoc.add_instrument()||`` function, then play the ``||agent:Note.Do||`` ``||agent:Note.So||`` ``||agent:Note.La||`` ``||agent:Note.Fa||`` notes by using the ``||hoc:hoc.note()||`` function.
Expand Down
2 changes: 1 addition & 1 deletion music_python_activity2.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ hoc.note(Note.Fa)
```

## Using instruments
That didn't quite work, lets make the song a bit more complex by adding the ``||agent:Instrument.Bell||`` instrument and then replaying the four notes.
That didn't quite work, lets make the song a bit more complex by adding the ``||agent:Instrument.Bell||`` instrument and then replaying the four notes. See the hint for all available parameters.

#### ~ tutorialhint
Now add the ``||agent:Instrument.Bell||`` instrument to the end of the code using the ``||hoc:hoc.add_instrument()||`` function, then play the ``||agent:Note.Do||`` ``||agent:Note.So||`` ``||agent:Note.La||`` ``||agent:Note.Fa||`` notes again by using the ``||hoc:hoc.note()||`` function.
Expand Down
2 changes: 1 addition & 1 deletion music_python_activity3.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ hoc.note(Note.Fa)
```

## Using instruments
The song is still missing something. Let's start with a ``||agent:Drums.Medium||`` tempo using the ``||hoc:hoc.drums()||`` function, and end the song by removing the ``||agent:Instrument.Bells||`` instrument and playing the ``||agent:Note.Do||`` ``||hoc:hoc.note()||``.
The song is still missing something. Let's start with a ``||agent:Drums.Medium||`` tempo using the ``||hoc:hoc.drums()||`` function, and end the song by removing the ``||agent:Instrument.Bells||`` instrument and playing the ``||agent:Note.Do||`` ``||hoc:hoc.note()||``. See the hint for all available parameters.

#### ~ tutorialhint
Add the ``||hoc:hoc.drums()||`` function to the beginning of the code and set it to ``||agent:Drums.Medium||`` then remove the ``||agent:Instrument.Bells||`` at the end using the ``||hoc:hoc.remove_instrument()||`` function and add a final ``||agent:Note.Do||`` ``||hoc:hoc.note()||``
Expand Down
4 changes: 3 additions & 1 deletion pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"musicA3.md",
"music_python_activity1.md",
"music_python_activity2.md",
"music_python_activity3.md"
"music_python_activity3.md",
"setdesign_activity.md",
"setdesign_python_activity2.md"
],
"testFiles": [],
"public": true,
Expand Down
24 changes: 24 additions & 0 deletions setdesign_activity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
### @flyoutOnly true
### @hideIteration true
### @explicitHints true

# Design the sets

## Step 1
Search the room to find the 3 scripts that describe the scenes and then use the ``||hoc:biome, time, and weather||`` block to sequence them in the correct order.

#### ~ tutorialhint
The tagia biome should be ``||hoc:day||`` with ``||hoc:snow``, the desert biome should be ``||hoc:sunset||`` with ``||hoc:clear||`` weather, and the jungle biome should be ``||hoc:night||`` with ``||hoc:rain||``.

```ghost
hoc._set_activity()
```
```template
hoc._set_activity(Biome_Activity.Taiga, Time_Activity.Day, Weather_Activity.Clear)
hoc._set_activity(Biome_Activity.Desert, Time_Activity.Day, Weather_Activity.Clear)
hoc._set_activity(Biome_Activity.Jungle, Time_Activity.Day, Weather_Activity.Clear)
```

```package
hoc2024-ts=github:ReWrite-Media/hoc2024-ts/n/set#v0.0.105
```
31 changes: 31 additions & 0 deletions setdesign_python_activity2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
### @flyoutOnly true
### @hideIteration true
### @explicitHints true


# Design the sets

```python-template
hoc.set(Biome.Taiga, Time.Day, Climate.Clear)
hoc.set(Biome.Taiga, Time.Day, Climate.Clear)
hoc.set(Biome.Taiga, Time.Day, Climate.Clear)
```

## Complete the Challenge
Search the room to find the 3 scripts that describe the scenes and then use the ``||hoc:hoc.set()||`` function to sequence the 3 sets. It takes three separate paramters that define the set's ``||hoc:biome, time, and climate||``. See the hint for all available parameters.

#### ~ tutorialhint
**hoc:hoc.set()**
Available Biome parameters:
Biome.Taiga, Biome.Desert, Biome.Jungle

Available Time parameters:
Time.Day, Time.Sunset, Time.Night

Available Climate parameters
Climate.Clear, Climate.Snow, Climate.Rain


```package
hoc2024-ts=github:ReWrite-Media/hoc2024-ts/n/set#v0.0.105
```

0 comments on commit d128550

Please sign in to comment.