Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
add instrument to creates
Browse files Browse the repository at this point in the history
  • Loading branch information
hcientist committed Mar 20, 2024
1 parent 0c15eb9 commit 243ab8c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/student/create/aural.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export default function CreativityAuralActivity() {
}}
orig={json}
colors={currentAssignment?.part?.chord_scale_pattern}
instrumentName={currentAssignment?.instrument}
/>
</>
)}
Expand Down
4 changes: 4 additions & 0 deletions components/student/create/explore.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export default function CreativityActivity() {
trim={1}
onUpdate={handleTonicUpdate}
colors='tonic'
instrumentName={currentAssignment?.instrument}
/>
</div>
</div>
Expand All @@ -169,6 +170,7 @@ export default function CreativityActivity() {
trim={1}
onUpdate={handleSubdominantUpdate}
colors='subdominant'
instrumentName={currentAssignment?.instrument}
/>
</div>
</div>
Expand All @@ -192,6 +194,7 @@ export default function CreativityActivity() {
trim={1}
onUpdate={handleDominantUpdate}
colors='dominant'
instrumentName={currentAssignment?.instrument}
/>
</div>
</div>
Expand Down Expand Up @@ -255,6 +258,7 @@ export default function CreativityActivity() {
colors={currentAssignment?.part?.chord_scale_pattern}
selectedMeasure={selectedMeasure}
debugMsg='final explore composition flateditor instance'
instrumentName={currentAssignment?.instrument}
/>
<Recorder
submit={submitCreativity}
Expand Down
2 changes: 1 addition & 1 deletion components/student/create/theoretical.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export default function CreativityActivity() {
}
<Button onClick={()=>{setIsDoneComposing(true)}}>Done Composing</Button>
<h2>Step {subScores.length + 1} - Combined</h2>
{scoreDataRef.current && scoreDataRef.current.length > 0 && isDoneComposing && <MergingScore giveJSON={onMerged} scores={scoreDataRef} />}
{scoreDataRef.current && scoreDataRef.current.length > 0 && isDoneComposing && <MergingScore giveJSON={onMerged} scores={scoreDataRef} instrumentName={currentAssignment?.instrument} />}
<Recorder
submit={submitCreativity}
accompaniment={currentAssignment?.part?.piece?.accompaniment}
Expand Down

0 comments on commit 243ab8c

Please sign in to comment.