![見出し画像](https://assets.st-note.com/production/uploads/images/126514930/rectangle_large_type_2_0b69433b6bbdef66fdd84c6aba3e69e0.jpeg?width=1200)
Daisy Seed事始め(第2回)
Daisy SeedでPure Dataのパッチを動かすには、2つの方法があります(2023/12/20調べ):
plugdataを使う方法
Pythonのツール"pd2dsy"を使う方法
いずれの方法も、Pure DataパッチをDaisy Seedで実行可能な形にコンパイルした後、Daisy Seedに流し込む、という形になります。Heavy Compiler Collection (hvcc)により、このようなことが可能となっています(参考資料3)。
今回は、手順が簡単な「plugdataを使う方法」について、MacOS(Intel)での実際を記載します。
なお上記のいずれの方法も、Pure Data Vanillaの一部のオブジェクトはコンパイルの対象外です(後述)。cyclone等、追加でインストールするようなライブラリも対象外です。
1. テスト用Pure Dataパッチの用意
今回は簡単な動作確認だけをしたいので、何も操作しなくても音が出るような、単純なテスト用Pure Dataパッチを用意した。
注)パッチのファイル名や保存場所のパスに半角スペースが含まれないようにすること。
![](https://assets.st-note.com/img/1705928880370-wDrmPEM3Mt.png?width=1200)
2. plugdataのインストール
下記サイトよりplugdataをダウンロードする。MacOS、Windows、Linuxがサポートされている。
3. Toolchainのインストール
plugdataを起動し、テスト用Pure Dataパッチを開く。
Settingsのアイコンからメニューを表示し、Compile…を選択する。
![](https://assets.st-note.com/img/1704279738752-IUfAkxKUtt.jpg?width=1200)
"Toolchain not found"と表示される場合は、Toolchainをダウンロードする。
![](https://assets.st-note.com/img/1704280040126-cQ2b76RqPa.jpg?width=1200)
4. Compilerの設定
Compilerの画面の左メニューより"Electro-Smith Daisy"を選択し、各パラメータを設定する。
今開いているテスト用パッチをexportするので、Patch to exportは"Currently opened patch"を選択
Daisy Seedを使うので、Target boadには"Seed"を選択
コンパイルした結果をplugdataからDaisy Seedに直接流し込むので、Export typeにFlashを選択
![](https://assets.st-note.com/img/1704280354434-gziNVWP8ds.jpg?width=1200)
5. コンパイルとDaisy Seedへの送信
Daisy SeedをUSBケーブルでPCと接続する。
Daisy Seedをブートローダーモードにする。
ブートボタン(右)を押したままリセットボタン(左)を押し、リセットボタン(左)→ブートボタン(右)の順に指を離す。plugdataのCompilerの画面で"Flash"ボタンを押す。
"Export successful"と表示されたら完了。
ログにはwarningがいくつか表示されるが(多分)問題ない。また、ログの最後に表示されている下記エラーも無視して良い。
dfu-util: Error during download get_status
make: *** [../../libdaisy/core/Makefile:330: program-dfu] Error 74
![](https://assets.st-note.com/img/1704281807688-m92EWLqEFk.jpg?width=1200)
6. Daisy Seedの動作確認
Pure Dataまたはplugdata上でテスト用パッチを実行した時と同じ音がDaisy Seedから出力されていればOk。
7. Daisy Seed用にコンパイル不可能なオブジェクトの確認
Settingsのメニューから"Compiled mode"を選択し、そのチェックマークをONにすると、Daisy Seed用にコンパイル不可能なオブジェクトがパッチ中にマーキングされるようになる。
コンパイル可能/不可能なvanillaオブジェクトについては、参考資料3を参照のこと。
![](https://assets.st-note.com/img/1704293100036-PZ3dMW2O49.jpg?width=1200)
![](https://assets.st-note.com/img/1704290783699-a6fLeoKh47.png?width=1200)
8. 参考資料
plugdata - Documentation : Compilation and Integration with HVCC Compiler
https://plugdata.org/documentation.htmlDaisy Forum : Plugdata - new PD environment that can flash straight to Daisy
https://forum.electro-smith.com/t/plugdata-new-pd-environment-that-can-flash-straight-to-daisy/3352GitHub - Heavy Compiler Collection (hvcc)
https://github.com/Wasted-Audio/hvcc
Supported vanilla objects
Unsupported vanilla objects
Version history
v1.1 : 2024/01/22 ModSaw.pdの波形をDC offsetの無いものに変更
v1.0 : 2024/01/04 公開