Skip to content

Commit

Permalink
Cosmetic.
Browse files Browse the repository at this point in the history
  • Loading branch information
smimram committed Jun 7, 2024
1 parent 8d428fa commit 3c077b6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/inspect.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@ open Lilv
let show_plugin p =
Printf.printf "%s\n%!" (Plugin.uri p);
Printf.printf "%s%!" (Plugin.name p);
if Plugin.author_name p <> "" then
Printf.printf " by %s\n%!" (Plugin.author_name p);
if Plugin.author_name p <> "" then Printf.printf " by %s\n%!" (Plugin.author_name p);
Printf.printf "Class: %s\n%!" (Plugin.Class.label (Plugin.plugin_class p));
Printf.printf "Latency: %s\n%!" (if Plugin.has_latency p then "yes" else "no");
Printf.printf "Replaced: %s\n%!" (if Plugin.is_replaced p then "yes" else "no");
Printf.printf "Features: %s\n%!"
(String.concat ", " (List.map Node.to_uri (Plugin.supported_features p)));
Printf.printf "Required features: %s\n%!"
(String.concat ", " (List.map Node.to_uri (Plugin.required_features p)));
Printf.printf "Features: %s\n%!" (String.concat ", " (List.map Node.to_uri (Plugin.supported_features p)));
Printf.printf "Required features: %s\n%!" (String.concat ", " (List.map Node.to_uri (Plugin.required_features p)));
Printf.printf "Ports: %d\n%!" (Plugin.num_ports p);
for i = 0 to Plugin.num_ports p - 1 do
let p = Plugin.port_by_index p i in
Expand Down

0 comments on commit 3c077b6

Please sign in to comment.