Mercurial > hg > amuse
view implementations/meredith/tests/import-raph-c-data.lisp @ 302:ac78ce3d0b10
Add some basic midi predicate and accessor functions.
Ignore-this: ab60873a92efc7f4c3cd98cdb938dcea
darcs-hash:20090918100419-16a00-bd8423ddea7a4700d7e1c5300e4dafd35113897c.gz
author | j.forth <j.forth@gold.ac.uk> |
---|---|
date | Fri, 18 Sep 2009 11:04:19 +0100 |
parents | d22c67dac97d |
children | c9573d61b1b9 |
line wrap: on
line source
(cl:in-package #:amuse-meredith) (asdf:oos 'asdf:load-op 'amuse-meredith) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Tell the database about the new implementation. (amuse-database-admin:register-new-implementation *package*) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Add the datasets to the database (connect-to-database :database-name "test") (create-meredith-tables *amuse-database*) (import-bach-inv+sin *amuse-database*) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Retrieve compositions (defparameter *bach* (get-composition (make-meredith-composition-identifier 1))) (defparameter *bach-dataset* (get-dataset (make-amuse-dataset-identifier 1))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Tidy up ;;(drop-meredith-tables *amuse-database*) (disconnect-from-database)